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 nth highest salary

Answer Posted / bala

-- to find third highest salary from emp table
select empname,empsal from emp a where 3 = (select count(*)
from emp b where a.empsal <= b.empsal);

Is This Answer Correct ?    6 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a login account in ms sql server to access the database engine using "create login" statements?

1146


What is bcp? When does it use?

944


What is a partitioned view?

992


What is a unique key constraint?

1028


What are the features of Embedded SQL

1130


How to insert data into an existing table?

978


what is the difference between count(*) and count(1) ?

1085


Write a query for primary key constraint with identity key word?

1031


Characterize join and name diverse sorts of joins?

968


What is an index in a database?

979


What is dirty read?

1081


Why I have to use stored procedures?

1050


Explain iaas, paas and saas?

90


How and why use sql server?

1010


How do I view a stored procedure in sql server?

982