how to find the second highest salary from emp table?

Answer Posted / surya

Select max(sal) from employee where sal not in(select max
(sal) from employee)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does select count (*) mean in sql?

555


How many types of relationship are there?

549


What is the use of index in hive?

549


What is data types in sql?

537


What is a left join?

514






how to convert numeric values to character strings? : Sql dba

571


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

554


Is subquery faster than join?

572


Why does sql need a server?

565


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

598


What are actual parameters and formal parameters?

572


How do I turn a list into a table?

514


Can we group by two columns in sql?

507


Why do we use triggers?

522


How do I view a sql trace file?

568