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

An employee table, with the columns id, name, sal and dob.
Query to select emp names of all highest salaries(there are
4-5 people having the same salary which happens to be the
highest).









Answer Posted / anil

select name,sal from employee where sal in(select top 5 sal from employee order by sal desc)

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does dml stand for?

998


Explain security with sql azure?

186


Is foreign key unique?

1051


How to enable tcp/ip protocol on a sql server?

1219


Name some of the open source software that you can use in alternative to SSR?

170


What do you understand by integration services in sql server?

1003


how you can configure a running aggregate in SSRS?

199


What is query optimizer in sql server?

1077


How do you check sql server is up and running?

1057


What is multi-statement table-value user-defined function?

1058


What is the difference between Normalization and De-normalization?

1146


State a few properties of relational databases?

1184


What is a non equi join?

1026


What is meant by dirty read?

1044


Is it possible in sql table to have more than one foreign key?

1095