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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-05-09 : 08:25:24
|
| Harmeet writes "Hi,I have a TableName ScoresUser1 101User2 12User3 203User4 100Query to find User having second highest score(i.e in this scenario scores=101)thx" |
|
|
RM
Yak Posting Veteran
65 Posts |
Posted - 2005-05-09 : 09:15:08
|
| Select Top 1 * from myTableWhere Score < (Select Max(Score) from myTable)Order by score deschttp://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49355 |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-05-09 : 09:21:36
|
| http://sqlteam.com/forums/topic.asp?TOPIC_ID=49355MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|