TOP 5 QUERY

T

Tim H

Is there a way to grab the top or 1st 5 records in a table? So, if I have a
table of salesperson, I want to sort by volume and grab the top X number of
records only.
 
J

Jason Lepack

Is there a way to grab the top or 1st 5 records in a table? So, if I have a
table of salesperson, I want to sort by volume and grab the top X number of
records only.

Yup, just change the table and field names as appropriate.

SELECT TOP 5 *
FROM sales_person_table
ORDER BY sales_volume DESC

Cheers,
Jason Lepack
 
T

Tim H

THANK YOU!

Jason Lepack said:
Yup, just change the table and field names as appropriate.

SELECT TOP 5 *
FROM sales_person_table
ORDER BY sales_volume DESC

Cheers,
Jason Lepack
 
Top