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
explain what is mysql? : Sql dba
What is the difference between a primary key and a clustered index?
What is rtm stands for?
what are rollup and cube in t-sql? : Transact sql
How do I run a sql query in pgadmin 4?
How to use boolean type in select statement?
What is a table?
What is lookup table in sql?
How to load data with sql*loader?
Is it possible to read/write files to-and-from PL/SQL?
Explain cursor types?
How to display the records between two range in Oracle SQL Plus?
how to use 'mysql' to run sql statements? : Sql dba
When sql appeared?
What are different types of statements supported by sql?