0

I have below data table and need to accomplish the result for Student count as per availability and per department

enter image description here Note: Different Department may come in later.

Updated: Department Table: enter image description here

Want to have result as below: (Student count as per availability and per department)

enter image description here

usr021986
  • 3,421
  • 14
  • 53
  • 64

1 Answers1

0

Maybe this could work,

SELECT Department, 
       CONCAT(Studavailability,', ',
              COUNT(*)) 
       as "Stud Count as per availability per department"
FROM Table
Group By Department, Studavailability
wookiekim
  • 1,156
  • 7
  • 20