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
Is sqlexception checked or unchecked?
Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?
How to prepare for oracle pl sql certification?
When is a declare statement required?
List the ways to get the count of records in a table?
What is informix sql?
What is a crud api?
What are user defined functions?
What is sql injection vulnerability?
how to drop an existing table in mysql? : Sql dba
Which software is used for pl sql programming?
What are all the common sql functions?
Which language is used in sql?
What are the types of index in sql?
How do you create a unique index?