find out the third highest salary?

Answer Posted / sanil

select first_name,salary from employees a
where (select count(distinct(salary)) from employees aa
where a.salary<=AA.SALARY) = &n;

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Garbage Collection? and what is full recursive Garbage collection?

2393


What are the various constraints used in oracle?

556


Is oracle an operator?

536


How to write date and time interval literals in oracle?

575


What is an oracle data file?

617






How to sort output in descending order in oracle?

580


What is coalesce function?

577


Describe an oracle table?

577


How to shutdown your 10g xe server from command line?

556


What is pragma autonomous transaction in oracle?

522


Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

1369


definition of cluster and non-clustered index?

2482


Is there an oracle sql query that aggregates multiple rows into one row?

548


Differentiate between translate and replace?

633


how can db_files > maxdatafiles since db_files is for instance and the later is for database

2180