Top selling product per user_id and categorize by each user's buying activity (first-time, second-time, etc.) – Mysql
I'm working on MySQL workbench and I would like to find the top-selling products by types of buyers. First I categorized customers based on their buying activity. If a person made a purchase only on 1/1, it's a first-time buyer.…