sql - counting number of entries in a month -


I have an order table, and it has the order-date column, which is called order_date. I have to calculate the number of orders of each month in 2009. How do I do this?

  Select the month (order-date) as the order, calculation (*) Order by order in order of order where year (order_data) = month by month (order_date) order (order_date)  

for reference, see Transact-SQL and command.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -