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'
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'