BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Certified Data Analyst Associate Exam - Topic 4 Question 1 Discussion

Posted by Alishia on Jan 24, 2024 at 10:00 PM

A data analysis team is working with the table_bronze SQL table as a source for one of its most complex projects. A stakeholder of the project notices that some of the downstream data is duplicative. The analysis team identifies table_bronze as the source of the duplication.

Which of the following queries can be used to deduplicate the data from table_bronze and write it to a new table table_silver?

A)

CREATE TABLE table_silver AS

SELECT DISTINCT *

FROM table_bronze;

B)

CREATE TABLE table_silver AS

INSERT *

FROM table_bronze;

C)

CREATE TABLE table_silver AS

MERGE DEDUPLICATE *

FROM table_bronze;

D)

INSERT INTO TABLE table_silver

SELECT * FROM table_bronze;

E)

INSERT OVERWRITE TABLE table_silver

SELECT * FROM table_bronze;

Get Premium Databricks Certified Data Analyst Associate Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
17 comments · newest first
BR
Brice 1 year ago
Option C? Never heard of that syntax before. Is it even valid?
CR
Cristina 1 year ago
Totally agree with A! It's the simplest and most effective.
ET
Ethan 1 year ago
Wait, can you really use "MERGE DEDUPLICATE"? Sounds off.
ME
Melita 1 year ago
I think Option B could work too, but not for deduplication.
RA
Raelene 1 year ago
Option A is definitely the way to go!
CR
Cristy 1 year ago
I don't think MERGE DEDUPLICATE is a standard SQL command, so Option C seems wrong. But I'm not completely confident about the others either.
BR
Brandee 1 year ago
I feel like we practiced a similar question where we had to create a new table without duplicates. Option A sounds familiar, but I can't recall if there were other methods we discussed.
RA
Rashad 1 year ago
I'm not entirely sure, but I think INSERT INTO might just add more duplicates instead of removing them. So, maybe not Option D?
JO
Josefa 1 year ago
I remember we discussed using DISTINCT to remove duplicates in SQL. Option A seems like the right choice.
DE
Deandrea 1 year ago
Option B with the "INSERT *" syntax looks a bit strange to me. I don't think that's valid SQL, so I'll probably rule that one out.
BO
Bong 1 year ago
Option C mentions "MERGE DEDUPLICATE", which sounds promising, but I'm not familiar with that syntax. I'll have to double-check the documentation to see if that's a valid SQL operation.
TY
Ty 1 year ago
I'm a bit unsure about the difference between Option D and Option E. Both seem to be using INSERT statements, but I'm not sure if there's a meaningful difference between them.
TO
Tomoko 1 year ago
Hmm, this looks like a pretty straightforward deduplication task. I think Option A with the DISTINCT keyword is the way to go here.
PE
Pearlie 1 year ago
I'm leaning towards Option A as well. The DISTINCT keyword is a classic way to remove duplicates, and it's a simple and reliable solution.
DA
Dawne 1 year ago
I think this is a pretty straightforward question. The security guards likely have the right to check IDs and bags for safety reasons, so I'll go with A.
RA
Raelene 1 year ago
Hmm, I'm a little unsure about this one. I'll need to carefully review the Scrum principles and how they relate to risk management.
AN
Annice 1 year ago
I'm a little unsure here. I'll need to review my notes on the different accounting pronouncements to make sure I choose the right one.
0/2000 characters

Save Cancel