I have two tables, the first is \'actions\' which has columns \'id\' and \'actionname\', the second is \'completedactions\' which has \'userid\' and \'actionid\'. They look
select * from actions
left outer join completedactions on ( completedactions.actionid = actions.id and completedactions.userid=1 )