What kind of join do I need?

You would use an INNER join to establish the relationship between the common gameid field;

select
  votes.userid,
  games.title
from games
  inner join votes on (votes.gameid = game.gameid)
where
  votes.userid = 'a'

Leave a Comment