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-Analyst-Associate Topic 3 Question 25 Discussion

Actual exam question for Databricks's Databricks Certified Data Analyst Associate Exam exam
Question #: 25
Topic #: 3
[All Databricks Certified Data Analyst Associate Exam Questions]

A business analyst has been asked to create a data entity/object called sales_by_employee. It should always stay up-to-date when new data are added to the sales table. The new entity should have the columns sales_person, which will be the name of the employee from the employees table, and sales, which will be all sales for that particular sales person. Both the sales table and the employees table have an employee_id column that is used to identify the sales person.

Which of the following code blocks will accomplish this task?

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: D

The SQL code provided in Option D is the correct way to create a view namedsales_by_employeethat will always stay up-to-date with the sales and employees tables. The code uses theCREATE OR REPLACE VIEWstatement to define a new view that joins the sales and employees tables on the employee_id column. It selects the employee_name as sales_person and all sales for each employee, ensuring that the data entity/object is always up-to-date when new data are added to these tables.


Contribute your Thoughts:

Becky
5 days ago
Why do you think option C is correct?
upvoted 0 times
...
Elizabeth
6 days ago
I disagree, I believe option C is the right one.
upvoted 0 times
...
Tresa
17 days ago
Whoa, hold up! Option D is clearly the answer. It's the only one that fully addresses the requirement to keep the data up-to-date.
upvoted 0 times
...
Becky
17 days ago
I think the correct code block is option A.
upvoted 0 times
...
Shenika
22 days ago
I'm not convinced. Option C seems like it could be a more efficient way to handle this task.
upvoted 0 times
Luisa
4 days ago
User2: Option B looks like a good choice to me.
upvoted 0 times
...
Mirta
13 days ago
User1: I think Option A might work for this task.
upvoted 0 times
...
...
Oliva
28 days ago
Option B looks like the way to go. It's the most straightforward and intuitive solution to the problem.
upvoted 0 times
Karina
14 days ago
User 2
upvoted 0 times
...
Markus
20 days ago
User 1
upvoted 0 times
...
...

Save Cancel