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 - 2006-05-16 : 08:19:17
|
vis writes "how to get second maximum salary in the emp table which is already sorted?" |
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2006-05-16 : 08:20:13
|
SQL Team is a Microsoft SQL Server site, you can try http://dbforums.com/ for Oracle questions, or http://domyhomeworkforme.com/ |
|
|
eyechart
Master Smack Fu Yak Hacker
3575 Posts |
Posted - 2006-05-16 : 11:41:52
|
quote: Originally posted by AskSQLTeam vis writes "how to get second maximum salary in the emp table which is already sorted?"
use the pseudo column 'rownum' this sounds a lot like homework, so I'll just leave you with that hint.-ec |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-05-17 : 07:31:26
|
Why is always the second maximum required?It seems interviewers dont change that question for long time MadhivananFailing to plan is Planning to fail |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2006-05-17 : 09:14:26
|
Or college professors, I mean, teaching assistants. |
|
|
|
|
|