Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thanks for your response Raphael. Useful module you have there. What I'm looking for though is a SQL query that'll return a table with 2 cols: num_of_orders and num_of_customers, so it'll show the number of customers who have only ever placed 1 order, those who have placed 2, etc all the way up to the max number of orders ever placed. Is that something you can help with? Thanks!