Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / kotravel. b

SELECT MAX(SAL) FROM EMPLOYEE WHERE SAL<(SELECT MAX(SAL)
FROM EMPLOYEE);



THIS will surly give 2^nd max sal ok this correct ans ok....

Is This Answer Correct ?    85 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is auto increment?

571


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

529


What is normalization sql?

501


What is the difference between partition and index?

476


What is ttitle and btitle?

567






How do you know if a relationship is 2nf?

508


Which is faster truncate or drop?

550


How do I copy a table in sql?

510


what is dbms? : Sql dba

534


what is a constraint? : Sql dba

699


What are different sql data types?

498


What is flag in sql?

531


explain advantages of myisam over innodb? : Sql dba

588


Is natural join same as inner join?

497


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

546