Question: Write an SQL command using the 'having' clause that retrieves the order numbers of orders over $1000 grouped by the date ordered from the OrderDetails table.
Answer:
SELECT OrderRef FROM OrderDetails
ORDER BY DateOrdered
HAVING VALUE>1000;
When I test the above it doesn't work, can someone please let me know what I am doing wrong?
Thanks