Hi All.
I have a scenario in which i need to calculate the time consumed by the user to do a task.
suppose Start Time is : 2012-03-14 10:00 am
and End Time is : 2012-03-15 10:am
and working hours is 7 am to 2 pm
then result should be : 7 hours and not 24 hrs.
I know i did to use DateDiff with case statement but i am not able to frame by T-SQL statements.
Thanks.