how to find the second highest salary from emp table?
Answer Posted / sankar sasmal
select distinct sal from emp e where 2=(select count(distinct sal)from emp s where e.sal<=s.sal)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is insert command in sql?
What is db journal file?
Is it important to partition hard disk?
What is bitemporal narrowing?
What is procedure and function in sql?
What is bind variable in pl sql?
How will you distinguish a global variable with a local variable in pl/sql?
How do I edit a stored procedure?
What is compiled query?
Why stored procedure is faster than query?
What is the difference between local variables and global variables?
What is the use of pl/sql table?
How to avoid using cursors?
Explain select statements in sql?
how to escape special characters in sql statements? : Sql dba