how to findout the 100th maximum salary

Answer Posted / g.sivanagaraju

SELECT DISTINCT(A.SAL)
FROM EMP A
WHERE &N=(SELECT COUNT(DISTINCT(B.SAL))
FROM EMP B
WHERE A.SAL<=B.SAL);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How exception is different from error?

539


Can I call a procedure inside a function?

549


What is scalar function in sql?

528


Why is pl sql needed?

509


What are all ddl commands?

545






Is primary key an index?

531


What do you think about pl/sql?

529


What is the usage of the distinct keyword?

682


Explain architecture of sql server notification services?

620


What is using in sql?

562


what is a constraint? : Sql dba

708


Is delete faster than truncate?

543


What is the usage of when clause in trigger?

565


Can we change the table name in sql?

528


What is snowflake sql?

578