Timedora
Free Online Flashcard Deck

Data Joins and Table Reshaping Free Online Flashcards

Study Data Joins and Table Reshaping with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What defines a many-to-one join?

Back

In a many-to-one join, a key may repeat on the left table but occurs only once on the right.

02
Front

How should join keys be prepared before merging?

Back

Use compatible data types and normalize key values consistently; check for blanks, extra spaces, inconsistent capitalization, and formatting differences.

03
Front

What does a left anti join return?

Back

A left anti join returns rows from the left table that have no matching row in the right table.

04
Front

What row-count check applies to a left outer many-to-one join?

Back

For a left outer many-to-one join, the result should normally have the same row count as the left table. An increase can signal duplicate keys on the right.

05
Front

Why compare business totals after a merge?

Back

Compare totals or other control figures before and after the merge; a row-count check alone cannot detect every incorrect match.

06
Front

A ProductID is unique only within a store. What key should identify the record?

Back

Use both StoreID and ProductID when a product identifier is unique only within a store.

07
Front

How can a wide monthly sales table be reshaped for analysis?

Back

Unpivot the repeated measurement columns into attribute-value rows, such as ProductID, Month, and Sales, so each product-month observation has a row.

08
Front

How can you check lookup-key uniqueness for an expected many-to-one join?

Back

Group the lookup table by key and count rows. Any count above one is a duplicate-key exception; investigate it rather than simply deleting duplicates.

09
Front

Which join retains only records that match in both tables?

Back

An inner join retains only rows with a match on both sides.

10
Front

When is Unpivot Other Columns useful?

Back

Use Unpivot Other Columns when identifier columns are known but new measurement columns may be added later.

11
Front

How can you inspect unmatched keys when both tables’ coverage matters?

Back

Use anti joins in both directions when coverage of both tables matters, then classify unmatched keys as expected, correctable, or blocking errors.

12
Front

Why does a many-to-many join often need investigation?

Back

In a many-to-many join, keys repeat on both sides; matching can multiply rows and usually needs investigation.