I have below data table and need to accomplish the result for Student count as per availability and per department
 Note: Different Department may come in later.
Note: Different Department may come in later. 
Want to have result as below: (Student count as per availability and per department)
I have below data table and need to accomplish the result for Student count as per availability and per department
 Note: Different Department may come in later.
Note: Different Department may come in later. 
Want to have result as below: (Student count as per availability and per department)
 
    
    Maybe this could work,
SELECT Department, 
       CONCAT(Studavailability,', ',
              COUNT(*)) 
       as "Stud Count as per availability per department"
FROM Table
Group By Department, Studavailability
