sql - Error in query, two select statements with left join? -
sql - Error in query, two select statements with left join? -
i have 2 select statements:
a: select a.1,a.2,a.3 table1 b: select b.1,b.2,b.3 table1 b
now bring together these 2 statements?
i tried in below way , got error:
select * (select a.1,a.2,a.3 table1 a) aa left bring together (select b.1,b.2,b.3 table1 b) bb aa.a.1 = bb.b.1;
within left join, need include on/where
clause:
select * (select a.1,a.2,a.3 table1 a) aa left bring together (select b.1,b.2,b.3 table1 b) bb aa.a.1 = bb.b.1,
should in format:
select * (select a.1, a.2, a.3 table1 a) aa left bring together (select b.1,b.2,b.3 table2 b) bb on a.1 = b.1 ...
for more clarification, please see image:
as stands, it's quite hard distinguish requirements in terms of want query return, op image visually display syntax each of joins.
sql left-join
Comments
Post a Comment