MySQL Select and LEFT JOIN multiple with AS statement -
i'm encountered couple errors contains multiple with
statement.
(for example, abc_table, def_table, qrs_table
ones populated, containing similar column names have different metrics within each table. )
with abc as( select region,temporature,id abc_table) , def as( select region,temporature,id def_table) , xyz as(select region,temporature,id abc left join def on def.region=abc.region ) /*this 1 uses value previous with*/ select region,temporature,id,region_id qrs_table qrs /*this key table*/ left join xyz on xyz.id = qrs.id region_id=3
would appreciate thoughts/input thank you!
Comments
Post a Comment