how to find the second highest salary from emp table?
Answer Posted / vinod dubey
select * from emp
where sal = (select max(sal) from emp where sal <>(select max(sal) from emp));
it will defiantly work
best of luck
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is PL/SQL Records?
Which command is used to delete a package?
What are different types of sql commands?
Is json a nosql?
What is the file extension for sql database?
What is the maximum rows in csv?
how mysql optimizes distinct? : Sql dba
Does inner join remove duplicates?
Is sql easier than java?
What is an intersect?
does sql support programming? : Sql dba
How to fetch alternate records from a table?
How to make a copy values from one column to another in sql?
Which sorts rows in sql?
how to present a past time in hours, minutes and seconds? : Sql dba