Mysql – Sum of a column based on multiple conditions returns null. Why is that?
I have an expense table where multiple expenses can be tied to an ID, but each of these expenses can have a specific type. I can get the sum of ONE type. SELECT SUM(expense) AS total FROM expenses WHERE id…