I have Customer Groups with Number-Ranges (from Customernumber, to Customernumber).
select g.id,
(select count(*), sum(sales)
FROM transactions t1
where t1.customernumber between g.from_customernumber and g.to_customernumber)
from customer_groups g
When selecting this i get this error
ERROR 1241 (21000): Operand should contain 1 column(s)
What can i do to fix this? I've read some threads about this but I didn't find a solution for this.
Best regards!