A poor data model, indeed, as Brett says, which means the solution will be a little ugly.There are actually a couple of ways of doing it, you can either join twice as suggested or use subqueries. Here's an example of the latter:SELECTdbo.Trans.AccountID,Sum(dbo.Trans.DeltaCash),Count(dbo.Trans.DeltaCash),(SELECT Value FROM table2 t2 WHERE t2.Accid = trans.Accid AND Field = 'Country') AS Country,(SELECT Value FROM table2 t2 WHERE t2.Accid = trans.Accid AND Field = 'City') AS CityFROMdbo.TransWHEREdbo.Trans.TransId BETWEEN '201107' AND '201107' ANDdbo.Trans.TransType = 'DEPOSIT'GROUP BYdbo.Trans.AccountID
P.S. @Brett, how are ya, mate?! Long time no see! Good to see you're still around.OS