find out the third highest salary?
Answer Posted / ajit
SQL QUERIES FOR FINDING Nth HIGHEST SALARY
SELECT DISTINCT (a.salary) FROM EMPLOYEES A WHERE &N = (SELECT COUNT (DISTINCT (b.salary)) FROM EMPLOYEES B WHERE a.salary<=b.salary);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do we get field detail of a table?
How to manage transaction isolation level?
How to create a new table in your schema?
How to open a cursor variable?
what's query optimization and without use of IN AND Exist can we get another way data from query
Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.
Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?
does the query needs a hint to access a materialized view?
What is Library Cache in Oracle?
How to grant create session privilege to a user in oracle?
What is a data dictionary and how can it be created?
What is a subquery in oracle?
What is a static data dictionary in oracle?
How to use "for" statements in oracle?
What is the dynamic sql in oracle?