The best way is to DROP TableB and whenever you need the totals just run that group by query. That way you don't need to keep them in sync.But here is a way to find differences:select a.EquipNum ,a.Date ,a.Expr1 ,b.Totalfrom ( Select EquipNum,Date,SUM(Total)AS EXPR1 From TableA Group By EquipNum,Date ) ainner join TableB b on b.EquipNum = a.EquipNum and b.Date = a.Datewhere a.Expr1 != b.Total
Be One with the OptimizerTG