I am sure the solution is simple, but it is shying away from me.
The table is configured as follows:
TABLE NAME = sales Field 1 = id INT Auto Increment Primary Key Field 2 = user_id INT NOT NULL Field 3 = item VARCHAR(100) NOT NULL
So, let's say I'm looking for users who have purchased the following items:
How would I structure the SQL statement to return the user_id values โโof the users who purchased each of the three elements (the user had to buy all three elements)?
source share