how to find the second highest salary from emp table?

Answer Posted / ramcharan tej

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two types of exceptions.

639


What are the events on which a database trigger can be based?

600


what are the system privileges that are required by a schema owner (user) to create a trigger on a table?

627


what is 'mysqldump'? : Sql dba

573


Is pl sql still used?

514






What is an inner join sql?

549


What are the advantages of stored procedure?

544


Mention what pl/sql package consists of?

541


How many sql commands are there?

677


What is sql and its types?

628


How delete all data from all tables in sql?

542


Explain the uses of a database trigger?

579


How do I remove duplicates in two columns?

512


What are different types of triggers?

567


What does stand for in sql?

528