how to get second highest salary in SQL(as/4000
Answer Posted / c srirammulu
select * from emp a where &n=(select count(distinct (sal))
from emp f where a.sal<f.sal)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
is it possible to pass an object or table to a procedure as an argument?
Why we use stored procedure instead of query?
Why schema is used in sql?
What is replication id?
what is a trigger? : Sql dba
what is foreign key? : Sql dba
What is the difference between numeric and autonumber?
How do you use collections in procedure to return the resultset?
What is difference between primary and secondary key?
how to get a list of indexes of an existing table? : Sql dba
How do you write an inner join query?
What is rename command in sql?
Is sql workbench free?
What is sql indexing?
How do we use distinct statement? What is its use?