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
 Other Forums
 Other Topics
 Query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-07-14 : 08:51:34
Resmy writes "How to find the third largest number out of a group of numbers using simple sub query?"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-07-14 : 09:06:15
Select min(number) as number from (select top 3 number from table order by number DESC) T

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -