how to find the second highest salary from emp table?
Answer Posted / hitesh
select top 1 salary from t1 where salary in(select top 2
salary from t1 order by salary desc)order by salary asc
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Why we use sql profiler?
Can we join 3 tables in sql?
Is and as keyword in pl sql?
how to drop an existing view in mysql? : Sql dba
what is a cursor? : Sql dba
tell me about various levels of constraint. : Sql dba
How do I find duplicates in the same column?
explain what is mysql? : Sql dba
Is delete faster than truncate?
What does fetching a cursor do?
what is a database lock ? : Sql dba
How insert into statements in sql?
what is cross join? : Sql dba
What are the benefits of triggers?
Why is a trigger used?