how to find the second highest salary from emp table?

Answer Posted / kishor

select max(salary ) from employee
where
sal<(select max(salary)from employee)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use stored procedure instead of query?

527


What is server name sql?

582


What is the difference between join and natural join?

470


What is faster join or subquery?

505


How can you load microsoft excel data into oracle? : aql loader

610






Can procedure in package be overloaded?

604


what are the authentication modes in sql server? : Sql dba

522


How subquery works in sql?

537


How many joins in sql?

544


what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba

519


What is sql partition function?

610


Mention what does plv msg allows you to do?

662


what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba

550


Explain constraints in sql?

569


Can we rollback delete command?

510