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

Can some one please help with a query which will take only
max value of a column in a join.

Answer Posted / vaibhavi_dixit

select max(alias1.columnname) from table1 alias1
join table2 alias2
on condition

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is change data capture (cdc) in sql server 2008?

1023


How can I check that whether automatic statistic update is enabled or not?

1035


Can a synonym name of a table be used instead of a table name in a select statement?

1026


how to use DTS package in 2000,2005,2008 in sql server

1831


Why de-normalization required?

995


What is partition, how will you implement it? : sql server analysis services, ssas

1044


How do I view a stored procedure in sql server?

978


Indexes are updated automatically is the full-text index also updated automatically?

1019


Explain about Views?

1062


How to recompile stored procedure at run time?

1067


Is there any difference between primary key and unique with the not null condition?

941


How to find out the list schema name and table name for the database?

934


Why should you use or avoid select * statements?

1019


Introduction of rollup clause using sum and group by clause?

957


How to insert data into an existing table?

971