CPSC340A
Database Systems

Day 6 Notes

Union

Union

    SELECT value1 FROM Table1 LEFT OUTER JOIN Table2 USING (id) WHERE
    UNION ALL
    SELECT value1 FROM Table1 RIGHT OUTER JOIN Table2 USING (id) WHERE value1 IS NULL;