SELECT player_id FROM tbl_player WHERE player_id NOT IN (SELECT player_ref FROM tbl_team);
How it works
The above example retrieves a list of all the players (player_ids) that do not appear in the team table (tbl_team) using the reference (player_ref).
No comments:
Post a Comment