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
Is truncate ddl or dml?
What are primary key and foreign key and how they work?
What is #table in sql?
what is a record in a database ? : Sql dba
what is the different between now() and current_date()? : Sql dba
What is the difference between delete, truncate and drop command?
What is dynamic query?
how to write date and time literals? : Sql dba
What is trigger and how to use it in sql?
What is trigger and stored procedure in sql?
Can a key be both primary and foreign?
What is dense_rank in sql?
What is difference between joins and union?
Does truncate free space?
What is an escape character in sql?