Viewing 3 posts - 1 through 3 (of 3 total)
This is my query.
Here , I have calculated InTime and OutTime .
Query:
=====
Select
(CASE(Cur.Status) WHEN 'OUT' THEN
(CASE(Prv.Status) WHEN 'IN' THEN
RIGHT(('0'+Convert(varchar,(sum(DateDiff(mi,Prv.Time,Cur.Time)/60)))),2)+':'
+RIGHT(('0'+Convert(varchar,(sum(DateDiff(mi,Prv.Time,Cur.Time)%60)))),2)
ELSE '' END)
ELSE '' END) AS InTime,
(CASE(Cur.Status) WHEN 'IN' THEN
(CASE(Prv.Status) WHEN 'OUT' THEN
RIGHT(('0'+Convert(varchar,(sum(DateDiff(mi,Prv.Time,Cur.Time)/60)))),2)+':'
+RIGHT(('0'+Convert(varchar,(sum(DateDiff(mi,Prv.Time,Cur.Time)%60)))),2)
ELSE...
October 2, 2011 at 1:57 am
This is my query.
Here , I have calculated InTime and OutTime .
Query:
=====
Select
(CASE(Cur.Status) WHEN 'OUT' THEN ...
October 2, 2011 at 1:54 am
during insertion of test1 table, automatically insert the values into test_audit table using trigger.
Thanks
August 2, 2011 at 1:06 pm
Viewing 3 posts - 1 through 3 (of 3 total)