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
Can you join views in sql?
What are the features of pl sql?
How do I remove sql developer from windows 10?
Is it possible to include an insert statement on the same table to which the trigger is assigned?
what is recursive stored procedure? : Sql dba
What is the usage of distinct keyword?
what are numeric data types? : Sql dba
Is not null in sql?
how to convert numeric values to character strings? : Sql dba
Can we use the cursor's to create the collection in PL/SQL?
How to set up sql*plus output format in oracle?
how does a local variable is defined using t-sql? : Transact sql
What is a rank in sql?
can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba
Explain the uses of control file.