can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / divya
select max(sal) from tablename where sal<(select
max(sal)from tablename)
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is primary key index?
Explain the concept of view and Types of views in SQL server?
What is the difference between executequery () and executeupdate ()?
What are the steps you should follow to start sql server in single-user mode?
Are all views updatable ?
How to fine-tune reports?
How to create a new login name in ms sql server?
How do I know if localdb is running?
How do you rename a table in sql server?
I have a table Events Events containing cardno,time,id,name--each id has a cardno my requirement is every day each employee swipe the card several times i want to calculate first and last time of each card the output should be name 1 2 6 7 in out in out holiday holiday xxx 09:30 06:30 09:40 06:45 where 1,2...... are dates for example january 1,2, etc. 6 and 7 are saturday and sunday how it is posssible
What are the instances when triggers are appropriate?
What is data source view or dsv? : sql server analysis services, ssas
Is it safe to delete log files?
What is difference between equi join and inner join?
What are the advantages of user-defined functions over stored procedures in sql server?