In reality, the WHERE is cola IN (123, 456, 789, etc), in which case the group by does make sense. I just simplified it. Glad my oversimplification found another issue to catch :)
In reality, the WHERE is cola IN (123, 456, 789, etc), in which case the group by does make sense. I just simplified it. Glad my oversimplification found another issue to catch :)