Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sandip
SELECT MAX(SAL) FROM EMPLOYEE WHERE SAL<(SELECT MAX(SAL)
FROM EMPLOYEE);
The correct one is.......
SELECT MAX(SAL) as SAL FROM EMPLOYEE WHERE SAL<(SELECT MAX(SAL)
FROM EMPLOYEE);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a composite key be null?
what is the bond code in materialized view?
How to use transactions efficiently : transact sql
what are the limitations of identity column? : Transact sql
Is sql a oracle?
Which sql statement is used to return only different values?
How do I view an execution plan in sql?
How to pipe multiline string to isql?
What is indexing oracle sql?
How many sql databases can you have on one server?
Do stored procedures prevent sql injection?
What is %type in pl sql?
How do I create a sql database?
What normalization means?
Is it possible to include an insert statement on the same table to which the trigger is assigned?