For each product, calculate the number of positive reviews (rating >= 4), neutral reviews (rating = 3), and negative reviews (rating <= 2). Return product_id and the three counts. Only include products with at least 2 reviews total.
Schema
🔑idINT
🔗product_idINT
🔗customer_idINT
ratingINT
commentTEXTNULL
review_dateTEXT
postgresql
Run your query to see results
Press Ctrl + Enter to execute