Write a query to find second highest salary of an employee.

Answer Posted / monika

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

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you fetch first 5 characters of the string?

544


How do I count rows in sql?

553


What is a left join?

499


What is a natural join?

508


Is left join same as inner join?

529






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

613


Does view contain data?

610


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

609


Does oracle roll back the transaction on an error?

527


What is a full join sql?

587


What is dba in sql? : SQL DBA

525


What are the types of functions in sql?

558


Does inner join return duplicate rows?

516


Mention what plvcmt and plvrb does in pl/sql?

626


What are the types of queries in sql?

514