how to get second highest salary in SQL(as/4000
Answer Posted / raji_4u
select *
from emp e1
where 2 = ( select count(distinct sal)
from emp e2
where e1.sal <= e2.sal
)
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
How do you select unique values in sql?
What are the possible values for the boolean data field?
what is innodb? : Sql dba
What is a Mapplet?
Which are the different character-manipulation functions in sql?
define sql update statement ? : Sql dba
What is the difference between cluster and non-cluster index?
What is left join in postgresql?
What is the requirement of self-join?
What do you mean by table in sql?
How do I find duplicates in the same column?
What is before trigger?
which command using query analyzer will give you the version of sql server and operating system? : Sql dba
Does sql use python?
What is anonymous block in sql?