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 / dewashish kumar pal

select salary from tablename t where (n-1)= (select count(*) from tablename where salary > t.salary);


note:- t = tablename

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what stored procedure can you use to display the current processes? : Sql server administration

1008


What are the benefits of normalization?

1109


Explain different types of lock modes in sql server 2000?

931


Do you know exporting and importing utility?

1039


What is BLOCK statements in SQL?

1263


Is null vs coalesce?

882


How do you set a trace flag in sql server?

1035


Tell me what is the significance of null value and why should we avoid permitting null values?

983


Explain the steps to use transact-sql cursor?

1061


Explain about link server in sql server?

1055


What is a raid and what are different types of raid configurations?

1267


Mention the 3 ways to get a count of the number of records in a table.

976


What to check if a User database is locked?

1069


Is port 1433 secure?

997


Tell me about joins in database system and explain each in detail.

1046