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 / subrata sinha roy

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

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is foreign key a primary key?

1103


Why is there a performance difference between two similar queries where one uses union and the other uses union all?

1037


How do I schedule a sql server profiler trace?

983


What is use of except clause? How it differs from not in clause?

1022


Please explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?

957


How can we use ConnectorJ JDBC Driver with MS SQL?

1003


How to store and query spatial data?

998


What are the types of sql server?

1058


How can you set the threshold at which sql server will generate keysets asynchronously?

996


What are the advantages to use stored procedures?

1115


Explain in details security in SQL azure?

121


How to automatically create a log when an exception is being received into SQL Server?

1297


Why we need to use secondry database file? though, we can do same work using primary database file also.

6899


What happens if null values are involved in bitwise operations?

1034


How do I get to sql server configuration manager?

1014