how to find the second highest salary from emp table?
Answer Posted / mona thakur
SELECT *
FROM emp
WHERE salary < (
SELECT max( salary )
FROM emp )
ORDER BY salary DESC
LIMIT 1
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the three pl sql block types?
What is sql and explain its components?
What is a sql profiler?
How does one use sql*loader to load images, sound clips and documents? : aql loader
What is a mutating table and a constraining table?
Explain the the delete statements in sql?
What is oracle sql developer?
Can you have a foreign key without a primary key?
What are different types of functions in sql?
What are different types of keys?
what is a stored procedure? : Sql dba
How to raise user-defined exception with custom sqlerrm ?
Does postgresql run on the cloud?
How many types of normalization are there?
What is a record in a database?