left and right joins in sql -
i trying join 3 tables in sql. using following query not working
select * char_level c1 right join (select distinct character_id fid, target_character_dbid tid house reason='set_house_access' or reason='remove_house_access' , character_id not null , target_character_dbid not null)as vd on c1.character_id==vd.fid left join char_level c2 on c2.character_id==vd.tid
can help?
add semicolon , use single equal sign.
select * char_level c1 right join (select distinct character_id fid, target_character_dbid tid house (reason = 'set_house_access' or reason = 'remove_house_access') , character_id not null , target_character_dbid not null) vd on c1.character_id = vd.fid left join char_level c2 on c2.character_id = vd.tid;
Comments
Post a Comment