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 rollback? : Sql dba
Difference between truncate, delete and drop commands?
Do we need to create index on primary key?
What is trigger explain with example?
What are some predefined exceptions in pl/sql?
How to read xml file in oracle pl sql?
Is coalesce faster than isnull?
write an sql query to find names of employee start with 'a'? : Sql dba
What is attribute indicator in pl sql?
What is a pdo connection?
Does inner join remove duplicates?
What does sql stand for?
What is a database event trigger?
Can there be 2 primary keys in a table?
explain advantages of innodb over myisam. : Sql dba