how to find the second highest salary from emp table?

Answer Posted / winnie

select max(sal) from emp
where sal not in (select max(sal) from emp )

Is This Answer Correct ?    1090 Yes 131 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can we repair a mysql table? : Sql dba

532


What is pl sql script?

554


What is pl sql architecture?

492


What is null in pl/sql?

613


Explain what is an index?

574






What is difference between nchar and nvarchar?

531


What is difference between hql and native sql?

567


what is not null constraint? : Sql dba

536


What's the difference between inner join and left join?

505


what is union? : Sql dba

571


What problem one might face while writing log information to a data-base table in pl/sql?

548


How to select all records from the table?

597


How do you run a query?

575


Can you have more than one key in a database?

499


Does varchar need length?

510