can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / pravin
select max(sal) from emp
where sal=(select max(sal)
from emp
where sal<(select max(sal)
from emp))
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the types of processing and explain each? : sql server analysis services, ssas
How will you find out if there are expensive SQL statements running or not?
can an automatic recovery be initiated by a user? : Sql server administration
What is difference between aggregate and analytic function?
Explain the microsoft sql server delete command? : SQL Server Architecture
How to delete an existing row with delete statements in ms sql server?
What are built in functions?
What is the purpose of grouping data in a report?
How do I run a trace in sql server?
What is attribute relationships, why we need it? : sql server analysis services, ssas
What is the difference between a clustered index and a non-clustered index?
Which Model uses the SET concept
what is new philosophy for database devises for sql server 7.0? : Sql server database administration
How to verify the port number of the sql server?
Tell me what do you understand by a view? What does the with check option clause for a view do?