I don't know if my question is valid or not but I'm working on an attendance system, and I want to get some output for my project.
I have an attendance table that holds three columns: emp_id, atten_type and date. The atten_type column can contain one of three values; that is 'present', 'absent' and 'leave'.
Now, I want the output like this: