Forum Discussion

Richard77's avatar
Richard77
Resolver I
8 years ago
Solved

Project status duration

Hi all,   I have this logging table in which the status change of a certain project is registered. The table has an 'ID('unique), a 'projectID' a 'created_at'(date of change) and a string in which ...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    Hi Richard77

     

    I worked on the file you sent. Please download from here

    I just replaced "VALUES" in the code with "MAX"

    Please check if the results are as per desire

    Actually there are some duplicate rows i.e. same( advisory_service_ID',old status and new status) as you can see in the Column "RowCount".
     Thats why VALUES didnot work.