Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / surajit pathak
select * from emp e1
where 2>(select count(1) from emp e2
where e2.sal>e1.sal)
order by sal desc
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
define sql delete statement ? : Sql dba
what are rollup and cube in t-sql? : Transact sql
explain advantages of myisam over innodb? : Sql dba
What are joins in sql?
What does sign mean sql?
what are the authentication modes in sql server? : Sql dba
What are the key differences between SQL and PL SQL?
What are database links used for?
What is nested table in pl sql?
Is grant a ddl statement?
What is the execution plan in sql?
What is string join?
Is a foreign key always unique?
What is the difference between row level and statement level trigger?
what is cursor. write example of it. What are the attributes of cursor.