QuestionQ36

VerifiedData Processing & Transformations

A data engineer works with two tables, each shown in full below.

Question Image

The data engineer executes the following query to join the tables:

Question Image

Explanation

A LEFT JOIN retains all rows from sales, the left-hand table. Thus, the result includes customers a1, a3, and a4; a1 matches store s1, a4 matches store s2, and a3 has NULL for store_id because it has no matching row in favorite_stores. Customer a2 is excluded because it exists only in the right-hand table.

Community Discussion

No comments yet. Be the first to start the discussion!