6 lines
272 B
MySQL
6 lines
272 B
MySQL
|
/*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;
|