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

Is the log file is a part of file group?

1041


What are a database and a data warehouse?

1024


What are the purposes and advantages stored procedure?

961


What program is used to store the data source file?

965


What is ms sql server triggers?

1018


What are scalar functions?

1002


What stored procedure can you use to display the current processes?

896


How you can change a cross join into an inner join?

976


What are sql server functions?

987


What is data source document?

1044


Does sql server use t sql?

1027


Does transparent data encryption provide encryption when transmitting data across the network?

1051


You want to check the syntax of a complicated update sql statement without executing it. What command should you use?

995


Is foreign key unique?

1004


What command is used to rename the database?

1015