I have a data set of customer segments coded 1-6 and product IDs. I can find the most commonly purchased product by customer segment like this
SELECT distinct pro