Click here to Skip to main content
15,891,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
@ 1st I'm newbie
I have a table (player_name, score) that contain 1000 palayer info. I want to select 3 best player from table the 1st, 2nd and 3rd player by their scores.
Note: there is may be more than one player in 1st place or in 2nd and 3rd... by having same score
suggest the query plz.
Posted

 
Share this answer
 
try:
SQL
SELECT TOP 3 * FROM myTable ORDER BY score DESC
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900