Find out the 3rd highest salary?
Answer Posted / jeevitha
select distinct a.salfrom emp a where &n= (select count
(distinct(b.sal)from emp b where a.sal<= b.sal)
-----
enter the highest sal of n:2,3.....n
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can we use insert statement in function?
Which sorts rows in sql?
What is pivot table in sql?
Write a unique difference between a function and a stored procedure.
What is a database event trigger?
What is trigger point?
What is asqueryable?
how to present a past time in hours, minutes and seconds? : Sql dba
Explain alias in sql?
What is the function that is used to transfer a pl/sql table log to a database table?
What is pl sql collection?
How does a covering index work?
What is the process of copying data from table a to table b?
Is pl sql different from sql?
How do I start sql profiler?