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

Explain how would you store your query in an SSRS report or a Database server?

128


Does group by or order by come first?

958


Explain trigger classes i.e. Instead of and after trigger?

877


Do you know what are acid properties?

1080


Why do we use functions?

913


How to create a simple table to test triggers in ms sql server?

975


How to create a ddl trigger using "create trigger" statements?

1134


What is a transaction and why is it important?

1091


What is the purpose of the master database?

1129


What is table value parameters (tvp)?

1101


What is NOT NULL Constraint in sql server 2012?

1000


Explain the truncate command?

986


What is cube dimension? : sql server analysis services, ssas

1004


What are xml indexes?

952


What is always encrypted?

997