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);
I don't think this will work correct me if i am
wrong.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
What is the difference between inner join and natural join?
Name the operator which is used in the query for pattern matching?
What is before trigger?
What are types of joins?
What is before and after trigger?
How is data stored in sql?
Compare sql & pl/sql
Can you have more than one key in a database?
what is a trigger in mysql? Define different types of trigger. : Sql dba
What is sorting in sql?
what is the difference between char and varchar data types? : Sql dba
How do I create an index in word?
Define a temp table?
what does the t-sql command ident_incr does? : Transact sql
What is auto increment feature in sql?