how to get second highest salary in SQL(as/4000
Answer Posted / tauseef
select last_name,salary from(
select last_name,salary ,rownum rk from(
select distinct salary,last_name from employees order by
salary desc nulls last))
where rk=9
By this way u can find 2nd,3rd n nth highest salary wit the
name
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
explain the options of myisamchk to improve the performance of a table. : Sql dba
Does normalization improve performance?
Which sql most popular?
What are the different parts of a package?
how can you create an empty table from an existing table? : Sql dba
Mention what does the hierarchical profiler does?
Can we use having without group by in sql?
Which is faster count (*) or count 1?
what are the advantages of using stored procedures? : Sql dba
What are the datatypes available in pl/sql ?
What is transaction control language (tcl)?
What is pessimistic concurrency control? : Transact sql
List and explain the different types of join clauses supported in ansi-standard sql?
Can cursors be part of a trigger body?
how many sql ddl commands are supported by 'mysql'? : Sql dba