average purchase amount = col.2/col.3
how to get customer ids whose average purchase is more than 50 rupees
SELECT distinct customer id from table where average purchase of a customer is greater than 50 group by customer id
3 of 4 | deleted 193 characters in body | ||||
average purchase
SELECT distinct customer id from table where average purchase of a customer is greater than 50 group by customer id |