find out the second highest salary?
Answer Posted / janmejaya
select top(1) * from employee where salary in (select
distinct top(2) salary from employee order by salary desc)
order by Salary
Above query is dynamic, if u want 3rd highest then just
change 2 to 3 , Please Try It
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is open database communication (odbc) in oracle?
Is truncate autocommit in oracle?
What privilege is needed for a user to query tables in another schema?
How to create a new oracle data file?
What are the different oracle database objects?
How to delete all rows a table in oracle?
How to use select statement to count the number of rows in oracle?
What are the attributes that are found in a cursor?
How many types of synonyms in Oracle?
How to retrieve data from an cursor to a record?
What are the varoius components of physical database structure of oracle database?
What is oracle and what are its different editions?
What is raw datatype?
What is the purpose of tables, private synonyms and public synonyms in Oracle?
What are the roles of dba?