can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / harikumar
select max(salary) as secondMax from employee where id <>
(select max(salary) from employee)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between truncate and delete commands?
Is a primary key unique?
What is a trigger what are the advantages of trigger?
What are the steps to process a single select statement?
How to delete a database in ms sql server?
What are the new features of sql server 2008 r2 reporting service?
What do you understand by hotfixes and patches in sql server?
What is a data source file?
What is normalization and its types?
what are the three command line utilities and what are their primary functions?
Why does sql studio use a single registered database repository? : sql server management studio
What happens if you are trying to access a schema not owned by you?
can a database be shrunk with users active? : Sql server administration
When would you use it?
How can I tell if sql server is 32 or 64 bit?