how to find the second highest salary from emp table?

Answer Posted / abhay

select max(sal) from emp where sal< (select max(sal) from
emp)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many sql ddl commands are supported by 'mysql'? : Sql dba

535


How do I find duplicates in the same column?

555


What is synchronized subquery?

605


what is “go” in t-sql? : Transact sql

614


What does count (*) mean in sql?

1107






What is sql select statement?

511


What is the difference between clustered and non-clustered indexes?

615


What is indexing oracle sql?

568


What does select count (*) mean in sql?

558


How many unique keys can a table have?

571


How to fetch alternate records from a table?

698


How can you save or place your msg in a table?

529


What is auto increment in sql?

597


What is memory optimized?

568


Explian rowid, rownum?

573