Good day. There is a table that consists of 5 fields: name,phone,address, date,status .
It is necessary to make a request that will return a list of dates and the number of elements of different statuses.
For example : on October 31, there were 4 entries in confirmed status, 7 with canceled and 2 with deferred. Now I try to do this:
SELECT order_date, status FROM orders GROUP BY order_date,status ORDER BY status; But then just the date and status is returned, and I need the number of all statuses to be listed on each date.
count(*)gets the number of records. Add it to the list of selections - Mike