QuestionQ214

VerifiedData Processing & Transformations

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

Question Image

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

Question Image

Which of the following is returned by this query?

Explanation

A LEFT JOIN returns all rows from the left table (sales) and matching rows from the right table (favorite_stores). Thus, a1 maps to s1 and a4 maps to s2, while a3 remains in the result with NULL for store_id. The query selects only customer_id, spend, and store_id, not units.

Learn more

Community Discussion

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