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 are the different schemas objects that can be created using pl/sql?
Does truncate remove indexes?
What is rollback?
What is delimiter sql?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
What are the different ddl commands in sql?
What is auto increment in sql?
What is the difference between a primary key and a clustered index?
how to shutdown mysql server? : Sql dba
what is a composite key ? : Sql dba
How do you update f as m and m as f from the below table testtable?
What is use of term?
How do I create a sql script?
What are the types of dbms?
What is auto increment feature in sql?