OOPS! I just saw I posted this in the wrong Topic Folde. Please forgive the newbie! I'll re-post in the correct location
I am trying to determine the amount of direct service time *staff* spent during a given work day. Table looks as follows:
PATIENT_ID, STAFF_ID, SERVICE_DATE, BEGIN_TIME, END_TIME, ELAPSED_MINUTES
The reason I can't add the elapsed minutes per day is because sometimes they work with multiple patients at a time. I am looking to add up the elapsed minutes where there is no overlap in the begin/end times. Does this make sense? I would greatly appreciate any help. I am using SQL Server 2008 R2. Thank you!