Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Exam Databricks-Certified-Data-Engineer-Associate Topic 2 Question 25 Discussion

Actual exam question for Databricks's Databricks-Certified-Data-Engineer-Associate exam
Question #: 25
Topic #: 2
[All Databricks-Certified-Data-Engineer-Associate Questions]

A data engineering team has two tables. The first table march_transactions is a collection of all retail transactions in the month of March. The second table april_transactions is a collection of all retail transactions in the month of April. There are no duplicate records between the tables.

Which of the following commands should be run to create a new table all_transactions that contains all records from march_transactions and april_transactions without duplicate records?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Ammie
3 days ago
Hmm, OUTER JOIN would include all records from both tables, even if there are duplicates. Not the best choice for this scenario.
upvoted 0 times
...
Alecia
9 days ago
I agree with Rickie. UNION is the way to go here, as we want to combine the two tables without any duplicates.
upvoted 0 times
...
Arlean
12 days ago
I'm not sure, but I think B makes sense because it combines the records from both tables.
upvoted 0 times
...
Rickie
12 days ago
Option B is the correct answer. The UNION operator combines the results of two queries while removing any duplicate records.
upvoted 0 times
...
Beatriz
13 days ago
I agree with Iola, UNION is used to combine records without duplicates.
upvoted 0 times
...
Iola
16 days ago
I think the answer is B.
upvoted 0 times
...

Save Cancel