SELECT [Code],sum([Value]) as COL FROM [Stuff] where COL=250 GROUP BY [Code]
Select code, sum(value) as col from table having sum(value) = 250 group by code
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)