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 / raju

SELECT NAME ,SAL FROM employee WHERE
SAL=(SELECT MAX(sal)from employee )

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain different types of cursors? : Sql server database administration

1150


Tell me what do you mean by an execution plan? Why is it used? How would you view it?

951


Difference between report and query parameter.

1146


What is the purpose of object explorer and its features? : sql server management studio

1278


Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?

1195


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

1058


What is use of dbcc commands?

1124


What is self join in sql server joins?

1119


What is the difference between getdate and sysdatetime?

1068


What is candidate key with example?

1036


What are the differences between “row_number()”, “rank()” and “dense_rank()”?

1255


What is ms sql server index?

1155


How to defragment indexes with alter index ... Reorganize?

1143


How does using a separate hard drive for several database objects improves performance right away?

990


how can a database be repaired? : Sql server administration

1018