Forum Moderators: open
Table1
(rough structure)
ID, fk2ID, randomvalue
Table2 (link table rough structure)
fk1ID, fk2ID
I need to make a query which says
SELECT * FROM Table1 WHERE fk2ID = (SELECT fk2ID FROM Table2 WHERE fk1ID='SomeValue')
There is going to be roughly 6 rows for each fk1ID in table 2. I am having trouble making the query select all info from table1 if fk2ID matches any of these 6 values.
Can anyone help me? Im pretty sure its a simple answer, it is just something I have never done before with SQL so am completely clueless to it.