79342547

Date: 2025-01-09 12:18:06
Score: 2
Natty:
Report link

Use Common Table Expression (CTE) above Select Statement. In select query, you have to do join with #Tempshift and then will calculate the shift.

This CTE computes attendance information for each employee, grouped by date and shift, with the calculated "In-Time" and "Out-Time" for each shift.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shuva Deb Nath