I need to select the greatest zip in my join and return the results..query i had that does everything except "normalize" the zipthe MAX() In the sub query does nothing.. SELECT b.ID, a.zip, b.Location, b.Move, b.DepotFROM (SELECT DISTINCT origNorm, MAX(zip) AS zip FROM dbo.BOA_Norm_addresses WHERE (zip > '') AND (zip IS NOT NULL) GROUP BY origNorm, zip) AS a RIGHT OUTER JOIN dbo.BOA_AAAAdepotFromTo AS b ON a.origNorm = b.LocationGROUP BY b.ID, a.zip, b.Location, b.Move, b.DepotORDER BY b.IDTable aorigNorm | Zipbnsf 70427upRR 70471upRR 70471-9852upPier 08546upPier upPier 08546-0844RRcorp 23456teset 92011Table bID | Location | Move | Depot1 bnsf NULL NULL 704272 upRR NULL NULL 704713 upRR NULL NULL 70471-98524 upPier NULL NULL 085465 upPier NULL NULL 6 upPier NULL NULL 08546-08447 RRcorp NULL NULL 234568 teset NULL NULL 92011Return ThisID | Location | Move | Depot | Zip1 bnsf NULL NULL 704272 upRR NULL NULL 70471-98523 upRR NULL NULL 70471-98524 upPier NULL NULL 08546-08445 upPier NULL NULL 08546-0844 6 upPier NULL NULL 08546-08447 RRcorp NULL NULL 234568 teset NULL NULL 92011