how to find the second highest salary from emp table?

Answer Posted / vinay

It works gr8...

select max(salary) from <table_name> where salary<(select
max(salary)from <table_name>)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between group by and order by in sql? : Sql dba

601


What does joining a thread mean?

550


Which type of cursor is used to execute the dml statement?

536


What are basic techniques of indexing?

851


What is column?

556






What is clause in sql?

588


What will you get by the cursor attribute sql%found?

540


what are date and time data types? : Sql dba

542


What is trigger with example?

570


Does group by remove duplicates?

557


Why trigger is used in sql?

537


Is sql considered coding?

573


What is the difference between an inner join and an outer join?

518


What is rtm in testing?

580


What does bitemporal mean?

603