Hello,
building a time report.
table structure
---
userid varchar2(10)
punchtime date
typeofpunch varchar2(20)
rec_id number
---
Data for time is entered
as sysdate for punchtime and typeofpunch shows if they are (login, out_to_lunch, in_from_lunch, end_of_day). Can anyone help and show me how I can subtract these values so I can basically do this
(punchtime, out_to_lunch) - (punchtime, login) +
(punchtime, in_from_lunch) - (punchtime, login)
to get the total time for the day...
JP
building a time report.
table structure
---
userid varchar2(10)
punchtime date
typeofpunch varchar2(20)
rec_id number
---
Data for time is entered
as sysdate for punchtime and typeofpunch shows if they are (login, out_to_lunch, in_from_lunch, end_of_day). Can anyone help and show me how I can subtract these values so I can basically do this
(punchtime, out_to_lunch) - (punchtime, login) +
(punchtime, in_from_lunch) - (punchtime, login)
to get the total time for the day...
JP