how to find the second highest salary from emp table?

Answer Posted / udayalakshmij

select emp_name,max(salary) from emp except(select max(salary) from emp);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between nvl function, ifnull function, and isnull function?

607


What is the difference between inner join and outer join?

539


Can instead of triggers be used to fire once for each statement on a view?

549


In pl/sql, what is bulk binding, and when/how would it help performance?

543


How can we make an if statement within a select statement?

549






What is offset in sql query?

602


Can we use two order by clause in query?

557


What is program debugging?

582


What is the max nvarchar size?

527


1) Synonyms 2) Co-related Subquery 3) Different Jobs in Plsql 4) Explain Plan 5) Wrap 6) Query Optimization Technique 7) Bulk Collect 8) Types of index 9) IF primary key is created then the index created ? 10) Foreign Key 11) Exception Handling 12) Difference Between Delete and Trunc 13) Procedure Overloading 14) Grant Revoke 15) Procedure Argument types. 16) Functions. 17) Joins

1165


Is sql difficult?

757


Can we insert in sql function?

558


What is scope and visibility in PL/SQL?

608


Is pl sql different from sql?

543


what are the different index configurations a table can have? : Sql dba

581