find out the third highest salary?
Answer Posted / brijesh
hi,
this query gives you the Nth highest salary, the trick is to
write (N-1) in the given place;
select salary from table as table1
where (n-1) =
(select count(salary) from table
where table1.salary<salary);
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
What is the sid in oracle?
How to define an anonymous procedure without variables?
How to rename an existing table?
Is there an oracle sql query that aggregates multiple rows into one row?
How do I use unicode codesets with the weblogic jdriver for oracle driver?
How to execute a stored program unit?
Explain the use of file option in exp command.
What is an external table?
Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com
How can I introduce multiple conditions in like operator?
Which is better Oracle or MS SQL? Why?
Explain the use of consistent option in exp command.
How to convert character types to numeric types?
How remove data files before opening a database?
What is a cursor in oracle?