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 is clr ddl trigger?
How to verify a user name with sqlcmd tool?
How can you append an identity column to a temporary table?
What is temporal table?
Explain primary key in sql server?
What is the purpose of sql profiler in sql server? : sql server database administration
Explain the ways to controlling cursor behavior?
How is SQL Azure different than SQL server?
What functions can a view be used to performed?
Define right outer join in sql server joins?
Explain the difference between HTTP and HTTPS in database?
What is the bookmark lookup and rid lookup?
Explain go command in sql server?
What are the kinds of subquery?
how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration