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...

what is syntex second or third highest salary.


thanks & Regards
Dhirendra sinha

Answer Posted / vikas kant

---To get 2nd highest salary----

select Top 1 salary from Emp where marks in(select top 2
salary from Emp order by salary desc)

---To get 3rd highest salary----

select Top 1 salary from Emp where marks in(select top 3
salary from Emp order by salary desc)



Regards Vikas Kant

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is filtered index?

1142


how would you troubleshoot blocking? : Sql server database administration

1025


What is the difference between char, varchar and nvarchar?

1075


What is difference between join and natural join?

1057


How to insert multiple rows with a subquery?

1186


why would you use sql agent? : Sql server database administration

1267


What are the types of ssrs?

149


Is it safe to delete log files?

970


How to find the version of sql server? : sql server database administration

1162


What are data driven subscriptions?

115


A trigger can reference objects outside the current database? State true or false.

1060


What Are the Main Features of SQL Azure?

121


What is normalization process?

1235


What is SQL Azure?

107


Explain multiserver query

1110