I have a teams table and a players table and I\'m wanting to find all teams that do not have players associated with them. The players table is associated via a team_i
team_i
You'd do that with a NOT EXISTS condition like so:
NOT EXISTS
SELECT * FROM teams WHERE NOT EXISTS (SELECT 1 FROM players WHERE players.team_id = teams.team_id)