Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / prasanna
select * from emp where 2(select count(distinct sal) from
emp e where sal>=e.sal);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we use two order by clause in query?
What is the function that is used to transfer a pl/sql table log to a database table?
Explain how to use transactions efficiently : transact sql
Does truncate require commit?
What is set transaction?
What does cursor do in sql?
What is sql lookup?
Explain the difference between cursor declared in procedures and cursors declared in the package specification?
What is dml statement?
How do I add a primary key to a table?
What are views in sql?
how do you login to mysql using unix shell? : Sql dba
How many joins in sql?
explain the difference between bool, tinyint and bit. : Sql dba
How do I run sql?