can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / tulasi ravi kumar
hi,
my id is ravi106109@gmail.com
select sal from emp a
where 1=(select count(b.sal) from emp b
where a.sal<b.sal) order by sal desc;
and also dileep is write
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What are the different types of replication you can set up in sql server?
List out some of the requirements to set up a sql server failover cluster?
How to sort the query output with order by clauses in ms sql server?
What is database mirroring?
What are the security related catalog views? : sql server security
Does partitioning help performance?
How do I find information about the install locations for the various instances running on a computer?
What is an execution plan?
Name few of the dcl commands in sql?
What is sql view?
can a database be shrunk to 0 bytes, if not, why? : Sql server administration
How do I setup a sql server database?
why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration
Explain how does the report manager work in ssrs?
What is analysis service repository?