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:

France
1 months ago
MERGE? Is this a data engineering exam or a relationship counseling session? Let's keep it professional, folks!
upvoted 0 times
Lai
2 days ago
Agreed, using UNION is the way to go for this data engineering task.
upvoted 0 times
...
Lonna
8 days ago
That's the correct command to combine the records from both tables without duplicates.
upvoted 0 times
...
Erick
10 days ago
Agreed, let's stick to professional terms in data engineering.
upvoted 0 times
...
Benedict
16 days ago
B) CREATE TABLE all_transactions AS SELECT * FROM march_transactions UNION SELECT * FROM april_transactions;
upvoted 0 times
...
Bettina
21 days ago
That's the correct command to combine the records without duplicates.
upvoted 0 times
...
Cherelle
30 days ago
B) CREATE TABLE all_transactions AS SELECT * FROM march_transactions UNION SELECT * FROM april_transactions;
upvoted 0 times
...
...
Melda
1 months ago
INTERSECT? Really? That would only return the common records between the two tables, which is not what we need here.
upvoted 0 times
...
Ammie
2 months 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
Stephanie
21 days ago
B) CREATE TABLE all_transactions AS SELECT * FROM march_transactions UNION SELECT * FROM april_transactions;
upvoted 0 times
...
Leontine
1 months ago
A) CREATE TABLE all_transactions AS SELECT * FROM march_transactions UNION SELECT * FROM april_transactions;
upvoted 0 times
...
...
Alecia
2 months 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
Margart
11 days ago
No, I think you guys are right. UNION is the best choice to combine the tables without duplicates.
upvoted 0 times
...
Michael
16 days ago
I'm not sure about that. Maybe we should consider other options as well.
upvoted 0 times
...
Johnathon
1 months ago
Yes, I agree. We need to use UNION to merge the tables without duplicate records.
upvoted 0 times
...
Latanya
1 months ago
I think option B) is the correct one. UNION combines the two tables without duplicates.
upvoted 0 times
...
...
Arlean
2 months ago
I'm not sure, but I think B makes sense because it combines the records from both tables.
upvoted 0 times
...
Rickie
2 months 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
2 months ago
I agree with Iola, UNION is used to combine records without duplicates.
upvoted 0 times
...
Iola
2 months ago
I think the answer is B.
upvoted 0 times
...

Save Cancel