Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query the top 100 records

Status
Not open for further replies.

tcolebu

MIS
Aug 24, 2004
6
US
I have a "revenue field" in a table of several hundred records. How can I query only the top 100?
 
SELECT TOP 100 * FROM yourTable ORDER BY [Revenue field] DESC

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top