how to get second highest salary in SQL(as/4000
Answer Posted / santosh kumar
select employee_id,last_name,salary
from
(select rownum r,employee_id,last_name,salary
from (select employee_id,last_name,salary from employees
order by salary desc)) a
where a.r=&nth_salary;
---u can find nth highest salary----
for more detail u can contact me at
rajgupta7666@gmail.com....
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is data type in database?
How many sectors are in a partition?
What are properties of the transaction?
what is a field in a database ? : Sql dba
what is innodb? : Sql dba
How do I edit a trigger in sql developer?
What is sql prepared statement?
Can you inner join the same table?
how are mysql timestamps seen to a user? : Sql dba
What program will open a mdb file?
how to escape special characters in sql statements? : Sql dba
Can we use two order by clause in query?
What are the benefits of stored procedures?
How to add new employee details in an employee_details table with the following details
What are character functions in sql?