Improving left join

There can be two kinds of left joins, or outer joins:

  • Left outer join
  • Right outer join

This type of outer join will return all rows from the left or right table, and only those rows that match from the right or left table. This is handy when there may be missing values in the other table, but you want to get a description or other information from the other table. The following image shows the working of outer joins, represented as a VENN diagram:

Rows for which matching values are derived will be NULL in each case of ...

Get Teradata Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.