Select TOP 20

  • Thread starter Thread starter Scott Reynolds
  • Start date Start date
S

Scott Reynolds

Hello!

Could someone please tell me why this query does not show top 20 Products
ordered by Hits?

SELECT TOP 20 Id, ProductName, Hits
FROM Products
ORDER BY Hits DESC;

Thank you in advance!
Scott
 
What does it show? If there are more than 20 shown, that's because there
must be ties on Hits.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top