My Table is as below:
EmpId section attn_status
101 Admin P
102 Admin P
103 Admin L
104 Admin A
105 Store P
106 Store L
107 Store A
108 Security P
109 Security L
110 Security P
111 Security P
I want to get results like below:
section Present Absent Late
Admin 2 1 1
Store 1 1 1
Security 3 0 1