I have two tables:
visit_id, revenue
visit_id, array_products_visited
visit_id, array_bought
When I join the everything, the products bought (table three) appear repeated by each and every products visited. How can I avoid this?
Thanks.
Edit: to help you understand what I mean
table one:
You need to add a WHERE clause that limits the rows, so you only see the ones where two.user_id=three.userid.
2.1m questions
2.1m answers
60 comments
57.0k users