write a query to find 4th max salary

Answer Posted / raj

for example if we take emp table, the query like this...
select a.sal from emp a where 4=(select count(distinct(b.sal))from emp b where a.sal<=b.sal)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I truncate a word?

521


How to use sql*plus built-in timers?

574


what is 'mysqlshow'? : Sql dba

581


Why do we need pl sql?

546


What is the advantage of nosql?

520






Can we use views in stored procedure?

506


what is a record in a database ? : Sql dba

566


What is full join?

525


How do I count rows in sql query?

487


What are the different ddl commands in sql?

574


What are the two types of cursors in pl sql?

532


Why do we need view in sql?

545


Write a sql query to convert all character to uppercase after hypen.

957


What is coalesce sql?

509


What is the sql*loader? : aql loader

585