SELECT Sum(Table2.dead) AS ['Sum Of dead non-firearm dead > 3'], Avg(Table2.dead) AS ['Avg Of non-firearm dead dead > 3']
FROM Table2
WHERE dead > 3 and (firearm_unknown = 0 and pistol = 0 and rifle = 0 and shotgun = 0 and machine_gun = 0);
The two outputs are both blank. This on the other hand:
SELECT Sum(Table2.dead) AS [Sum Of dead], Avg(Table2.dead) AS ['Avg Of dead']
FROM Table2
WHERE dead > 3 and (firearm_unknown = 1 or pistol = 1 or rifle = 1 or shotgun = 1 or machine_gun = 1);
No comments:
Post a Comment