how to find the second highest salary from emp table?
Answer Posted / manoj
select * from emp
where
sal=(select MAX(sal) from emp
where
sal<(select MAX(sal)from emp))
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is sql data?
What is difference between db2 and sql?
How do you get column names only for a table (sql server)?
What is a sql statement?
how to enter numeric values as hex numbers? : Sql dba
What are commit, rollback, and savepoint?
what is self-join? : Sql dba
What is sql comments?
What is trigger in sql? Explain
Which sql statement is used to delete data from a database?
How do you explain an index?
How can you tell the difference between an index and a view?
What are reports usually used for?
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
what are set operators in sql? : Sql dba