how to find the second highest salary from emp table?
Answer Posted / raju
select top 1 sal from emp
where sal not in (select top 1 sal from emp order by sal
desc ) order by sal desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to drop an existing index in mysql? : Sql dba
How to avoid duplicate records in a query?
Explain clause in sql?
Explain architecture of sql server notification services?
What do you think about pl/sql?
What are the operators in sql?
define join and explain different type of joins? : Sql dba
What is linq to sql?
Why we use triggers in mysql?
what is index? : Sql dba
What is mutating table error?
What are different types of triggers?
Does oracle roll back the transaction on an error?
What is auto increment feature in sql?
Why cross join is used?