Maximo Open Forum

 View Only
  • 1.  Queries

    Posted 05-29-2025 14:01

    Looking for Where Clause script to show Work Orders that are due from the end of the current month backwards to include all work orders that are past due.


    #MaximoUserGroups

    ------------------------------
    Doug Schoenfield
    Charles River Laboratories, Inc.
    ------------------------------


  • 2.  RE: Queries

    Posted 05-30-2025 10:45

    Queries on dates must be written differently depending on the database. Would you please tell us for which database the query should be and which field holds the "due date".



    ------------------------------
    Beat Keller
    Naviam
    ------------------------------



  • 3.  RE: Queries

    Posted 06-02-2025 12:02

    Try something like this (for SQL) -

    Substitute the field you use for OVERDUE (TargStartDate is used here)….

    and (TargStartDate <= convert(date,DATEADD(MM,DATEDIFF(MM,-1,getdate()),-1),101))



    ------------------------------
    ~Nikolaus Despain CRL
    Aquitas Solutions
    ------------------------------



Newest Episode
Ep. 4 | System Properties in IBM Maximo

Watch Steven Shull walk through practical IBM Maximo system properties that can improve usability, query behavior, attachment handling, and the overall Maximo user experience.

MORE by Naviam Episode 4 cover
Watch Episode 4
Also available: Ep. 3 | Work Order Role-Based Application