Pardon the title, I've no clue what to call this. So imagine I have this
table_ref
id_x|id_y
---------
6|70
6|71
6|72
6|73
8|70
8|73
9|72
9|73
How can i select id_y
only if it matches id_x= 6 & 8 & 9
?
in this case it should return me 73
the returned result of id_y
will then be used as an inner join in another sql query.
id_x
is6
,8
, and9
as well at the same time??id_x
only has one value at a time, right? so it will be6
,8
, OR9
.. – Leathern