I posted this question last week and did not get a solution so I am reposting.
I have a database used to track attendance
The table uses occurstart to hold the date they first missed and occurreturn for the date they returned.
Example
empid Occurstart Occurreturn
123 6/1/2001 6/2/2001 all days in June
345 6/29/2001 7/3/2001 2 days in June
234 5/28/2001 6/3/2001 3 days in June
654 5/29/2001 7/1/2001 30 days in June
using SQL how can I capture all employees that missed days in June
I will appreciate any advice received
I have a database used to track attendance
The table uses occurstart to hold the date they first missed and occurreturn for the date they returned.
Example
empid Occurstart Occurreturn
123 6/1/2001 6/2/2001 all days in June
345 6/29/2001 7/3/2001 2 days in June
234 5/28/2001 6/3/2001 3 days in June
654 5/29/2001 7/1/2001 30 days in June
using SQL how can I capture all employees that missed days in June
I will appreciate any advice received