how to get second highest salary in SQL(as/4000
Answer Posted / c srirammulu
select * from emp a where &n=(select count(distinct (sal))
from emp f where a.sal<f.sal)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is nvl?
Which operator is used in query for pattern matching?
what is the difference between rownum pseudo column and row_number() function? : Sql dba
What is the difference between joins?
what tools available for managing mysql server? : Sql dba
what is foreign key? : Sql dba
What are the operators used in select statements?
what is sql in mysql? : Sql dba
what is a trigger in mysql? : Sql dba
what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba
What do you think about pl/sql?
what are sequences
How much does sql cost?
Is grant a ddl statement?
how to use like conditions? : Sql dba