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

one table has four field id,name,design,salary. i have to
find maximum salary .

Answer Posted / ashish

hi,, it work


select * from table where salary =(select max(salary) from
table) .......this returns whole record of that salary,,,,
an if u want just that maximum salary than



select max(salary) from table

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If user is owning any SQL Objects, can we drop that user

2051


you have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation? : Sql server administration

929


What happens if null values are involved in comparison operations?

946


what are user defined datatypes and when you should go for them? : Sql server database administration

993


What is the library index called?

1041


Can I work with several databases simultaneously? : sql server management studio

969


Write a SQL query to make a column as unique?

1015


What is a covered index?

925


How sql server executes a statement with nested subqueries?

1010


What is normalization? Describe its different types.

1086


Explain transaction server consistency?

949


Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?

992


What is merge statement?

1067


Explain what are the restrictions that views have to follow? : SQL Server Architecture

1031


Write a sql query to delete duplicate records from a table called table1

1013