How to find 1st, 2nd, 3rd highest using select select
statement not using rownum

Answer Posted / annada

SELECT e.lastname,e.salary FROM employees e
WHERE 1=(SELECT count(*) FROM employess s
WHERE s.salary>e.salary

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use "for" statements in oracle?

592


What is a procedure in oracle?

618


From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.

590


How to use "out" parameter properly?

628


How to start a specific oracle instance?

582






What is dual table oracle?

527


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

1647


What is the data type of dual table?

527


How to rebuild an index in oracle?

552


What is where clause in oracle?

532


What is the difference between a hot backup and a cold backup in oracle?

573


while i take backup using ibm tsm the following errors occurred: rman-03009 ora-19513 ora-27206 ora-19502 ora-27030 ora-ora19511

3871


Why does Oracle not permit the use of PCTUSED with indexes?

1953


What is a package in oracle?

563


How to convert raw data type into text in oracle? Explain

603