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

Answer Posted / baburav zore

select max(sal) from employee where sal<(select sal from employee);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need unique key in a table?

535


What is pl sql in oracle?

596


What is cold data?

511


Which command is used to delete a trigger?

783


What is the difference between execution of triggers and stored procedures?

560






What is a database trigger?

622


What does sql stand for?

552


How is data stored in sql?

560


What company owns postgresql?

570


How does rowid help in running a query faster?

978


What is sql indexing?

565


How do I view output in sql developer?

588


What is a variable in sql?

524


What is trigger with example?

581


What is an exception in PL/SQL? What are the two types of exceptions?

635