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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select the top 3 Scorers From Database Tables 1

Status
Not open for further replies.

vvicin01

Programmer
Aug 14, 2001
21
0
0
US
I have created a table that list the stats of a hockey team. I wish to display
the top three scores (column name 'goals' table 'scrimmage'). I want to return
the top three scores in the the goals column. Can you help.


Thanks
Vic
 
Vic,

try this:

SELECT TOP 3 scrimmage.goals
FROM scrimmage
ORDER BY scrimmage.goals DESC;

Nick
 
Thanks Nick - That works GREAT!!!

Vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top