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 4 Question 12 Discussion

Actual exam question for Databricks's Databricks-Certified-Data-Analyst-Associate exam
Question #: 12
Topic #: 4
[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:

Asha
6 months ago
I initially thought it was A, but then I saw E is a better fit.
upvoted 0 times
...
Belen
6 months ago
Option C looks complicated and I don't think it's right.
upvoted 0 times
...
France
6 months ago
Agreed, option E applies the user-defined function correctly.
upvoted 0 times
...
Gail
6 months ago
Yeah, SELECT price(customer_spend, customer_units) AS customer_price FROM customer_summary looks correct.
upvoted 0 times
...
Jess
6 months ago
I'm leaning towards E.
upvoted 0 times
...
Reena
6 months ago
This question seems tricky.
upvoted 0 times
...

Save Cancel