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
how to load data files into tables with 'mysqlimport'? : Sql dba
Explain the types of joins in sql?
Is primary key clustered index?
Can we call a function containing dml statements in a select query?
How is a PL/SQL code compiled?
what is the difference between clustered and non clustered index in sql? : Sql dba
Why do we create views in sql?
what are the performance and scalability characteristics of mysql? : Sql dba
what are the advantages of sql ? : Sql dba
What is sequence in sql?
Is pl sql a scripting language?
Is sql considered coding?
What is the difference between microsoft access and sql?
How can we store rows in PL/SQL using array?
How can you know that statistics should be updated?