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
    ------------------------------