Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

get records in sql according to month name and count

SELECT EXTRACT(month FROM dateofappointment) "Month", count(*)
FROM appointment
WHERE EXTRACT(YEAR FROM dateofappointment) = '2014'
GROUP BY EXTRACT(month FROM dateofappointment)
ORDER BY EXTRACT(month FROM dateofappointment);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #records #sql #month #count
ADD COMMENT
Topic
Name
9+9 =