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
What is a database event trigger?
How to get help at the sql prompt?
What is trigger and stored procedure in sql?
First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.
what is a control file ? : Sql dba
What is sql and how does it work?
Explain clause in sql?
What is the size of partition table?
Can we group by two columns in sql?
how to rename an existing column in a table? : Sql dba
Can we join 3 tables in sql?
Which software is used for pl sql programming?
Explain what is an index?
what are the different functions in sorting an array? : Sql dba
How many joins in sql?