how to findout the 100th maximum salary

Answer Posted / sajid siddiki

SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT
(DISTINCT (b.sal)) FROM EMP B WHERE a.sal < = b.sal);
For Eg:-
Enter value for n: 100
SAL
---------
3700

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is mariadb a nosql database?

762


Does execute immediate commit?

929


What is input buffer in sql*plus?

825


How to set up sql*plus output format in oracle?

774


What is before and after trigger?

691






How is indexing done in search engines?

721


Is sql easier than java?

734


What are data types in pl sql?

780


what are tables and fields? : Sql dba

768


What is function and procedure in pl sql?

704


What is the sql*loader? : aql loader

779


What are the types of join and explain each?

773


How to add a column ‘salary’ to a table employee_details?

770


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

835


What is database sql?

707