Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / anita prasad
SELECT MIN(SAL) FROM (SELECT DISTINCT * FROM EMP ORDER BY DESC) WHERE ROWNUM<3;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are %type and %rowtype for?
What are aggregate functions in sql?
What is pl sql block structure?
What are the ddl commands?
Explain unique key in sql.
How do you use collections in procedure to return the resultset?
Can we have two clustered index on a table?
What are some predefined exceptions in pl/sql?
What is full join?
What is cte sql?
What is sql*loader?
What has stored procedures in sql?
what are the limitations of identity column? : Transact sql
What is an oracle stored procedure?
mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql