how to get second highest salary in SQL(as/4000
Answer Posted / shasi
select sal from emp a where &n=(select count(sal) from emp
b where a.sal>=b.sal)
First u enter 1 means 1st highest sal.then enter2 2nd
highest sal
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is the difference between delete and truncate statement in sql?
What is left inner join in sql?
How to write html code in pl sql?
how to enter binary numbers in sql statements? : Sql dba
How do you declare a constant?
How do I add a primary key to a table?
what is the difference between inner and outer join? Explain with example. : Sql dba
What are different types of functions in sql?
What is group by in sql?
what is an extent ? : Sql dba
What do you mean by query optimization?
What is data definition language?
How can one get sql*loader to commit only at the end of the load file? : aql loader
What are properties of the transaction?
How many sql are there?