Maybe my question will be silly, but i'm new to Mysql
I have a table with user_id and some interest.
+------+------+
|userID|Inter |
+------+------+
|1 |sport |
+------+------+
|2 |it |
+------+------+
|3 |game |
+------+------+
|1 |it |
+------+------+
|1 |game |
+------+------+
|3 |it |
+------+------+
|3 |sport |
+------+------+
Amount of interests can be huge(let say 20 or whatever)
Now i need to find all userId's that have interests it, game, sport;
Of course simple AND wont work as because of different rows.
So my question will be how to do it, so the output will be
+------+
|userID|
+------+
|1 |
+------+
|3 |
+------+
Thank you.