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
How does rowid help in running a query faster?
write an sql query to find names of employee start with 'a'? : Sql dba
How many disk partitions should I have?
What version is sql?
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
explain advantages of innodb over myisam. : Sql dba
What is pl sql script?
How to use sql statements in pl/sql?
Who is the owner of mysql database?
what are the type of locks ? : Sql dba
Enlist the data types that can be used in pl/sql?
What is clustered index in sql?
What is compound trigger?
Why do we need cursor in pl sql?
What are some emotional triggers?