-
-
Save parzibyte/9efa018280d9bf614faf099906b4b4b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select employee_id, | |
sum(case when status = 'presence' then 1 else 0 end) as presence_count, | |
sum(case when status = 'absence' then 1 else 0 end) as absence_count | |
from employee_attendance | |
group by employee_id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment