how to find the second highest salary from emp table?

Answer Posted / jhansi

select max(sal) from emp where sal<any(select max(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 is a full join sql?

596


What are the benefits of pl/sql packages?

542


What are system versioned tables?

553


What are inner and outer joins examples of both?

500


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

680






What are records give examples?

567


What is clause?

613


How do I view a sql database?

563


What is sqlservr exe?

482


Why do we use function in pl sql?

562


What is rank function in sql?

534


How do I view tables in mysql?

546


What are the types of subqueries?

574


What are all ddl commands?

551


what is single byte over head in oracle..?

1873