Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / omkar hendre
select distinct(sal) from emp a where 2=(select count(distinct(sal)) from emp b where a.sal <=b.sal)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is date functions?
what are local and global variables and their differences? : Sql dba
Where can I learn sql for free?
Are stored procedures compiled?
Which version of sql do I have?
Can we join more than 2 tables in sql?
How to move files from one directory to another in pl sql?
what is a trigger in mysql? Define different types of trigger. : Sql dba
How do I delete a trigger?
What is a scalar value in sql?
How do you clear the screen in sql?
What are the qualities of 2nf?
what is meant by nl2br()? : Sql dba
What is sqlca in powerbuilder?
Is nosql relational?