Exam Certified Data Engineer Associate All QuestionsBrowse all questions from this exam
Question 105

A data engineer is working with two tables. Each of these tables is displayed below in its entirety.

The data engineer runs the following query to join these tables together:

    Correct Answer: C

    The query performs a LEFT JOIN between the 'sales' and 'favorite_stores' tables on the 'customer_id' field. This means all records from the 'sales' table will be included in the result, and where there is no matching record in 'favorite_stores', the result will contain NULL for the 'store_id'. In this case, the 'sales' table contains records with customer IDs 'a1', 'a3', and 'a4'. The 'favorite_stores' table contains records matching 'a1' and 'a4', but not 'a3'. Therefore, the correct result is to include all rows from the 'sales' table and NULL for the unmatched row, which is represented in the option showing 'a3' with a NULL store_id.

Discussion
vigaroOption: C

LEFT join. D is the result of a FULL join

nescafe7Option: C

C - left outer join

31cadd7Option: D

IT'S D

b79962eOption: C

Sorry wrong it is C for the left join

b79962eOption: D

should be D

PreranaC

LEFT JOIN so should be C