I have a Table Name as EmpLog
EmpLog Table
- ID
- EmpId
- Status
- ActionDateTime
Id - Primary Key
EmpID - Employee code. // example N100 ,N101, N200
Status - IN / OUT
ActionDateTime - Time with Date. Exact occurrence of IN or OUT log entry.
I want to execute a stored procedure with particular Date. it should return the result for total number of work hours for each employeeid in the table.
we may have multiple IN/OUT for a same employee on the selected date.
see the output format image Expected Output result
if any IN / OUT Missing it should show for that employee. example odd IN or OUT entry for the selected date it should show missing of either IN or Out.
if there is No IN and Out it should show N/A