get records in sql according to month name and count

Solutions on MaxInterview for get records in sql according to month name and count by the best coders in the world

showing results for - "get records in sql according to month name and count"
Moses
10 Nov 2016
1SELECT EXTRACT(month FROM dateofappointment) "Month", count(*)
2FROM appointment
3WHERE EXTRACT(YEAR FROM dateofappointment) = '2014'
4GROUP BY EXTRACT(month FROM dateofappointment)
5ORDER BY EXTRACT(month FROM dateofappointment);