I have two tables users, products
users table
id product_id
1 [1,2,3]
2 [5,6]
3 [4]
Products table
id product
1 Milk
2 Bread
3 Soup
4 Noodles
6 Suger
7 Biscuits
8 Raw Eggs
How to apply joins on these tables.
Here is what i am trying to do.
select * from products join users ON find_in_set(products.id, users.product_id)
But, The output is incorrect.
Please guide me how to implement this.