Query for second maximum salary in each in each department
Answer Posted / sampath pallerla
select distinct(a.sal) from emp a where 2=(select count(distinct(b.sal)) from emp b where a.sal<=b.sal);
Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
what is schema? : Sql dba
how to convert dates to character strings? : Sql dba
How many rows can sqlite handle?
What is meant by user defined function?
what are the advantages of using stored procedures? : Sql dba
Why is sql better than hql?
What is dynamic sql in pl sql?
what is sp_pkeys? : Transact sql
What is the primary key?
What is pl sql in oracle?
what is the functionality of the function htmlentities? : Sql dba
Define sql delete statement.
What are the two different parts of the pl/sql packages?
What is partition in sql query?
How do I run sql profiler?