Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to find the second largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database

plz mail the answer @ mak2786@gmail.com

Answer Posted / your name

Forget everything...Here it goes..in a simple way...

Select salary from tbl_name a where
n = (Select count(distinct(count(*))) from tbl_name b
where b.salary>=a.salary)

Substitute you value for n. thats all.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?

125


What is a functions and types in sql server?

1147


How to insert and update data into a table with "insert" and "update" statements?

1042


What is global temp table?

1045


What do you understand by the denormalisation?

1020


What are the new features in SQL Server 2005 when compared to SQL Server 2000?

1212


on line cluster can we make if yes tell me the procedure

2067


What is the Control Flow in SSIS

1146


What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?

1242


Can you explain what is the use of custom fields in report?

1099


What are the differences between lost updates and uncommitted dependencies?

1141


What is schemabinding a view?

971


How to use clusters?

1015


What is a self join in sql server?

1192


Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.

1098