I need to retrieve the player number, name, street and town for all players that live in the same street and town as the players with number 6 or 7;
I am not sure how to write the SQL Query, i think i need to have a subquery in the WHERE clause but can't figure out how to do it.
This is what i came up with, but i have no way of testing it at this point
SELECT playerNo, name, street, town
FROM Players
WHERE street IN ( SELECT street, playerNo
FROM Players
WHERE playerNo IN (6,7));
AND town IN (SELECT town, playerNo
FROM Players
WHERE playerNo IN (6,7));
Should be compatible with Oracle 10g
Thanks to everyone who replied!