Ok I have no hair left and I don't know why I am drawing a blank on this but
I have 2 tables
Item (item_id,item_name)
Reviews (item_id,account_id,positive (enum Y, N), comment)
Primary Key is item_id in both tables
I want to get Item name and the count of how many users gave it a positive review and count of how many gave it a negative review and the total reviews on items that have been reviewed at least 3 times.
SELECT item, count( * ) AS total
FROM items
INNER JOIN reviews
USING ( item_id )
GROUP BY item_id
HAVING total >2
Is the query I am currently using to get the items that have been
reviewed more than 3 times.
Thx for any help