In the table below, I need to get a unique list of IDs with a count of how many were sold
In the example below, ID #1 was sold twice, #2 zero, #3 one, #4 zero, #5 one.
In order to do this, I have to group it by ID and aggregate with count
But doing so results in 2 for #1 , 1 for #2...