Becky Edwards
asked on
This is a datediff question but involving grouping
I have a crystal report that has dates in it and I need to know the time difference as the status changes from In Progress to Completed. Don't care about any other statuses, but they are currently built into the report so disregard them.
I am attaching the report.
For each account, as the status (line 2,5) changes from In Progress to Complete, I need to show the time difference in hours and minutes across from the account #. When there are more than one In Progress times, I only want to use the first In Progress time, none of the others.
I also want to disregard any accounts that are do not have both an In Progress and Complete time.
This is over my head.
Please help.
HSP-Cdsts-hx.rpt
I am attaching the report.
For each account, as the status (line 2,5) changes from In Progress to Complete, I need to show the time difference in hours and minutes across from the account #. When there are more than one In Progress times, I only want to use the first In Progress time, none of the others.
I also want to disregard any accounts that are do not have both an In Progress and Complete time.
This is over my head.
Please help.
HSP-Cdsts-hx.rpt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow. This works perfectly. I don't know if I will ever understand how you did it, but I thank you so much. You are truly blessed.
in t-sql would also give some different solutions (syntax), depending on the volume (number of rows) to process... and the complexity of the sql.
best would be if the crystal reports takes a stored procedure as input ...
please clarify