mysql - NULL value on LEFT JOIN operation -
consider 2 tables:
• draft_procedures • incoterms
table draft_procedures has column
1. incoterm
table incoterm has column
1. incotermunique 2. incoterm_desc
im trying join 2 tables in order incoterm_desc (description) incoterm table of draft_procedures incoterm.
when use following query c3incoterm_desc null value
select drp.incoterm, c3.incoterm_desc c3incoterm_desc draft_procedures drp left join incoterms c3 on drp.incoterm = c3.incotermunique
left outer join: per definition,left outer join retrieves rows tablea (draft_procedures) matching records tableb (incoterms) if record tablea (left), there no matching records tableb (right), corresponding (right) columns contain nulls.
select * tablea left outer join tableb on tablea.name = tableb.name;
Comments
Post a Comment