Answers for "count by month sql"

SQL
0

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);
Posted by: Guest on May-20-2020
0

count number of entires by months sql

select month(DepotArrivalDate), count(*)
from tbl_CMS_Container
WHERE     year(DepotArrivalDate) = '2013' 
group by month(DepotArrivalDate)
Posted by: Guest on August-07-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language