I have this table:
name count1 count2 address
John 5 0 London
John 0 3 London
Phil 1 0 Paris
I want to get
name count1 count2 address
John 5 3 London
Phil 1 0 Paris
So I want to sum count1 and sum count2 and group by name but merge address (since address is always going to be the same for each name)
This is SQL aggregates 101 (which I’m still learning, btw):