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.
|
/*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; |