QuestionQ54

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

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 favorite_stores. Therefore, a1 returns s1, a4 returns s2, and a3 is retained with store_id set to NULL; a2 is excluded because it exists only in the right table.

Learn more

Community Discussion

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