how to check the 3rd max salary from an employee table?

Answer Posted / gourvendra singh

In oracle you can find the 3rd max salary with the help of
the command:-

select sal from(select sal from(select distinct sal from
emp order by sal desc)
where rownum <=3 order by sal asc) where rownum=1;

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is procedure in pl sql?

538


What is a .db file?

544


what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

554


What is pl sql variable?

512


What is posting?

610






write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

542


How do you bind variables in pl sql?

581


What is execute immediate?

549


What are tuples in sql?

570


what is a trigger in mysql? Define different types of trigger. : Sql dba

554


Why truncate is faster than delete?

565


What is the difference between an inner and outer join?

540


What is the difference between null value, zero, and blank space?

556


How many row comparison operators are used while working with a subquery?

538


- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1390