BlackFriday 2024! 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 1 Question 8 Discussion

Actual exam question for Databricks's Databricks-Certified-Data-Analyst-Associate exam
Question #: 8
Topic #: 1
[All Databricks-Certified-Data-Analyst-Associate Questions]

A data analyst has created a user-defined function using the following line of code:

CREATE FUNCTION price(spend DOUBLE, units DOUBLE)

RETURNS DOUBLE

RETURN spend / units;

Which of the following code blocks can be used to apply this function to the customer_spend and customer_units columns of the table customer_summary to create column customer_price?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Casie
5 months ago
I think E is the best choice because it directly applies the price function to the columns.
upvoted 0 times
...
Jamie
5 months ago
I think option C is incorrect because it uses function() unnecessarily.
upvoted 0 times
...
Juan
5 months ago
I'm not sure, but I think option C might also work.
upvoted 0 times
...
Florinda
5 months ago
I agree with Jamie, option E seems to be the right choice.
upvoted 0 times
...
Jamie
5 months ago
I think the correct answer is E.
upvoted 0 times
...
Audra
6 months ago
I would go with option E as well, it looks the most straightforward and logical to me.
upvoted 0 times
...
Santos
6 months ago
I'm not sure about option C, it seems to be using the function keyword incorrectly.
upvoted 0 times
...
Johnetta
6 months ago
I agree, option E seems to be the right choice because it directly applies the function to the columns.
upvoted 0 times
...
Gail
6 months ago
I think the correct answer is E.
upvoted 0 times
...

Save Cancel