Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

What is wrong with this SQL command?

$
0
0

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


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>