adspace


can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com

Answer Posted / elumalai.k

select max(salary)from tablename where salary <(select
max(salary)from tablename)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1200


How to rebuild the master database?

1167


Why should you use or avoid select * statements?

1112


Why and when do stored procedure recompile?

1064


What is the primary use of the model database?

1151


What are wait types?

1251


How efficient you are in oracle and SQL server?

1258


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2296


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1300


Can one drop a column from a table?

1091


How raid can influence database performance?

1119


What is acid mean in sql server?

1247


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1024


Equi join and non equi join is possible with sql server?

1134


What is the difference between upgrade and migration in sql server?

1185