how to find the second highest salary from emp table?
Answer Posted / anuj maheshwari
select sal from emp where sal=(select max(sal) from emp
where sal<(select max(sal) from emp));
| Is This Answer Correct ? | 34 Yes | 5 No |
Post New Answer View All Answers
What is server name sql?
What do we need to check in database testing?
where are cookies actually stored on the hard disk? : Sql dba
Can you join a table to itself?
how can we know the count/number of elements of an array? : Sql dba
Determine if oracle date is on a weekend?
What is varchar sql?
What is difference between ms sql and mysql?
Explain two easy sql optimizations.
Explain isolation levels. : Transact sql
What are the uses of merge?
How can I make sql query run faster?
Can we join 3 tables in sql?
what is the command line end user interface - mysql? : Sql dba
Which is better trigger or stored procedure?