New Year Sale ! 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 30 Discussion

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

Elliott
2 days ago
I think E is the most straightforward option, so I'll go with that.
upvoted 0 times
...
Rosita
8 days ago
Hmm, option B seems a bit off. Selecting the 'price' column directly won't work as it's not a column in the table.
upvoted 0 times
...
Roselle
8 days ago
I'm not sure, but I think E makes sense because it directly applies the function to the columns.
upvoted 0 times
...
Laila
10 days ago
I agree with Janet, E looks like the right choice.
upvoted 0 times
...
Janet
11 days ago
I think the correct answer is E.
upvoted 0 times
...
Aja
12 days ago
Option E is the correct answer. It directly applies the user-defined function to the columns and creates the new column as specified.
upvoted 0 times
Francoise
2 days ago
Option E is the correct answer. It directly applies the user-defined function to the columns and creates the new column as specified.
upvoted 0 times
...
...

Save Cancel