Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 position of last three students in a class

Author  Topic 

Salah
Starting Member

1 Post

Posted - 2003-02-17 : 04:02:07
i want to know the name of last three students of a class such thata there are 42 students
i wanat to know the name of guys positioning at 40,41,42 rank


samrat
Yak Posting Veteran

94 Posts

Posted - 2003-02-17 : 05:57:19
Try this out..

Select TOP 3 [Name] from tblClass
Order By [RollNo] Desc

[RollNo] is the unique key in the table.. {1,2,3,4.....40,41,42}

HTH

Samrat
Go to Top of Page
   

- Advertisement -