I have a table called student with two columns:
JoinDate DATE
EmployeeName STRING
The contents of the table are as follows:
EmployeeName | JoinDate
----------------+-----------------
jaison | 1-jan-2008
robin | 2-feb-2008
binoy | 3-mar-2008
rahul | 4-feb-2008
I am looking to prepare the following output based on this table: a table containing 4-columns with names jan,feb,mar,april. Beneath each of these months a count is given as 1,2,1,0. These counts represent the number of employees that joined in that month (January 1 employee, February 2 employees, March 1 employee, April 0 employees)
Can you give me the required SQL query?