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
How to change the order of columns in Oracle SQL Plus ?
Define sql delete statement.
What are crud methods?
What are the parts of a sql statement?
Where are my tempfiles, I don't see them in v$datafile or dba_data_file?
Can we insert data into view?
How do you change a value in sql?
What is composite data type in pl sql?
What is a trigger in sql?
how to shutdown mysql server? : Sql dba
What is varchar example?
Does db2 use sql?
how many triggers are allowed in mysql table? : Sql dba
List the ways to get the count of records in a table?
What is schema in sql?