You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
272 B
MySQL
6 lines
272 B
MySQL
5 years ago
|
/*Write a SQL statement to find out the number of orders booked for each day and display it in
|
||
|
such a format like "For 2001-10-10 there are 15 orders".*/
|
||
|
SELECT ' For',ord_date,',there are',
|
||
|
COUNT (DISTINCT ord_no),'orders.'
|
||
|
FROM orders
|
||
|
GROUP BY ord_date;
|