﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / T-SQL (SS2K5)  / Time covered in a day for staff productivity / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 14:40:16 GMT</lastBuildDate><ttl>20</ttl><item><title>Time covered in a day for staff productivity</title><link>http://www.sqlservercentral.com/Forums/Topic1394725-338-1.aspx</link><description>OOPS!  I just saw I posted this in the wrong Topic Folde.  Please forgive the newbie! I'll re-post in the correct location :w00t: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_MINUTESThe 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!</description><pubDate>Mon, 10 Dec 2012 11:46:43 GMT</pubDate><dc:creator>kounslr</dc:creator></item></channel></rss>