find out the second highest salary?
Answers were Sorted based on User's Feedback
Answer / padiya hiten
select * from emp e1 where (3=(select count(distinct
(e2.sal))from emp e2 where e2.sal>=e1.sal));
Is This Answer Correct ? | 4 Yes | 6 No |
Answer / sumeet
select min(sal) from emp where sal in (select top 2 sal from
emp order by sal desc);
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / shachindra pandey
proc sql;
select id,name,population from populations where
population=(select max(population) from
populations
where population < (select max(population) from
populations));
quit;
Is This Answer Correct ? | 18 Yes | 22 No |
Answer / tejinder
select salary from emp order by salary desc limit 0,1;
Is This Answer Correct ? | 0 Yes | 5 No |
Can Multiple instances be run on Single Machine???
can u call user defined functions in select statements
How index is implemented in oracle database?
What is an oracle tablespace?
What is the difference between PFILE and SPFILE in Oracle?
What are the composite date types in oracle?
The join defined by the default data link is an outer join yes or no ?
T1: T2 A X--- this is updated record B B like this T1 table having no.of records updated. write a query"retrive updated record from T2"
What is tns name?
List the various oracle database objects?
How to save query output to a local file?
Give the Types of modules in a form?