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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -