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
 oracle query

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/
Go to Top of Page

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
Go to Top of Page

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

Madhivanan

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

robvolk
Most Valuable Yak

15732 Posts

Posted - 2006-05-17 : 09:14:26
Or college professors, I mean, teaching assistants.
Go to Top of Page
   

- Advertisement -