Hi Raghu
You can sum up all the minutes and show it as a monthly late.
just see if this helps you:
SELECT
NAME, SUM( DATEDIFF(mi, timearrived, officetime ) ),
datepart(month,timearrived)
FROM ATTENDANCE
GROUP BY NAME, datepart(month,timearrived)
please let me know if you have any questions
--
best Regards,
Chandra
http://chanduas.blogspot.com/ http://www.SQLResource.com/ ---------------------------------------
[quoted text, click to view] "raghu veer" wrote:
> i wrote a procedure which calculates how many minutes a person is late to the
> office on a particular day
> what is the best method for converting it to calculate the minutes late for
> the