Home Forums SQL Server 2008 T-SQL (SS2K8) Simple MAX Query not working RE: Simple MAX Query not working
bharathimc02
Mr or Mrs. 500
Points: 520
More actions
June 12, 2013 at 2:39 am
#1623238
This is the query i was trying to do...
i was trying to get vend_i and dept which has max(wgt) when grouped by vend_i and dept
select vend_i,dept,max(tot_wgt)
from
table1
group by vend_i,dept