write a query to find 4th max salary

Answer Posted / sreeharibabu

SELECT id
FROM (select salary2.*, rownum rnum from
(select * from test ORDER BY id DESC) salary2
where rownum <=4)
WHERE rnum >= 4;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are character functions in sql?

551


Can we create table inside stored procedure?

580


what is 'mysqldump'? : Sql dba

645


What is the difference between delete and truncate commands?

563


What are basic techniques of indexing?

910






Is nosql faster than sql?

623


What are actual parameters and formal parameters?

639


What are types of joins?

599


What is the difference between the implicit and explicit cursors?

599


Is null operator in sql?

670


how to create a new table in mysql? : Sql dba

607


how to convert numeric values to character strings? : Sql dba

634


What is the non-clustered index in sql?

639


what are the limitations of identity column? : Transact sql

680


Are stored procedures faster than dynamic sql?

602