Comparing which records a merge retains

A purchasing analyst merges the following datasets using Supplier ID. Purchases is the left dataset, and Suppliers is the right dataset. Every supplier ID in Suppliers occurs exactly once. Each matching purchase produces its own output row.


Purchases


Purchase ID

Supplier ID

P61

S3

P62

S8

P63

S3

P64

S9


Suppliers


Supplier ID

Supplier name

S3

Atlas

S8

Beacon

S5

Cedar


Complete the comparison table using exact integers. Count unmatched source records only when they are retained in the output. For unmatched records, fields from the other dataset are missing.

Merge operationTotal output rowsUnmatched purchase records retainedUnmatched supplier records retained
Inner join
Left join
Full outer join

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Merging Datasets Questions: