I have a table with multiple rows of results, and I'm wanting to be able to search it for multiple values, but one unique ID
I'm not sure how to explain it, but say I have a user with multiple items assigned to them. So for example, I want to be able to search for a list of users that have item 1
and item 3
assigned to them, and return that users ID to get their info.
Example Table:
╔════╦══════╦══════╗
║ ID ║ USER ║ ITEM ║
╠════╬══════╬══════╣
║ 1 ║ 3 ║ 1 ║
║ 2 ║ 5 ║ 12 ║
║ 3 ║ 3 ║ 3 ║
║ 4 ║ 1 ║ 4 ║
╚════╩══════╩══════╝
Would return user 3
as having both item 1
and item 3
I'm not even sure where to start. Any ideas?? I can try add more info if needed, just not sure what.