how to find the second highest salary from emp table?
Answer Posted / shalina bajaj
select sal from emp a
where $number = (select count(distinct(sal))
from emp b
where a.sal <= b.sal);
| Is This Answer Correct ? | 11 Yes | 17 No |
Post New Answer View All Answers
How do I sort a table in sql?
What is the file extension for sql database?
How to revise and re-run the last sql command?
What are the packages in pl sql?
What are the types pl/sql code blocks?
What is mutating trigger?
explain the options of myisamchk to improve the performance of a table. : Sql dba
What are the events on which a database trigger can be based?
what are numeric data types? : Sql dba
What is a database event trigger?
What is sql constant?
Why we use pl sql?
What does partition by mean in sql?
What is primary and foreign key?
Which is better varchar or nvarchar?