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 / sarat

TO FIND THE Nth HIGHEST SAL IN EMP TABLE

SELECT MIN (salary) as NthSalary FROM emptable WHERE
salary IN ( SELECT DISCINCT TOP N salary FROM emptable
ORDER BY salary DESC )

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dirty page?

1035


How to populate a table in sql server?

995


Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security

1112


What is the difference between Stored Procedures and triggers?

1133


explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?

2550


What is a constant or literal in ms sql server?

1098


Please explain what is “asynchronous” communication in sql server service broker?

982


What are the database objects? : SQL Server Architecture

1098


What is the largest component inside a field?

1188


What do you understand by mirroring and mention the advantages of the mirroring?

1116


Define tool Manage Statistics in SQL Server 2000 query ?

1167


Do you know nested transaction?

1002


What happens if an integer is too big for int date type?

1027


What is transactional replication?

1021


Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

1041