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

Answer Posted / arif saulat

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

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the key differences between SQL and PL SQL?

628


How bulk collect improves performance?

572


what are date and time intervals? : Sql dba

567


How do you write an index?

527


What is right join sql?

536






What are local and global Indexes and where they are useful.

930


How much does sqlite cost?

558


What is difference between cursor and trigger?

559


How do I start sql profiler?

561


What is procedure and function?

520


What is a clob in sql?

569


What are the three forms of normalization?

532


What is example of database?

519


What is the difference between sql and mysql?

559


What are the sql aggregate functions?

612