I have two tables
item_tb
| item_id | user_id | ---------------------
user_tb
| user_id | user_name | -----------------------
In item_tb, I have many elements belonging to different user in user_tb, an element can belong to one or several users ...
, so given userid A and userid B, how can I execute the mysql query to select all elements belonging to both userA and userB?
source share