
Ultimate access to all questions.
A data analyst has created a user-defined function using the following code:
CREATE FUNCTION price(spend DOUBLE, units DOUBLE)
RETURNS DOUBLE
RETURN spend / units;
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 customer_summary table to create a customer_price column?
A
SELECT PRICE customer_spend, customer_units AS customer_price FROM customer_summary
B
SELECT price - FROM customer_summary_
C
SELECT function(price(customer_spend, customer_units)) AS customer_price FROM customer_summary
D
SELECT double(price(customer_spend, customer_units)) AS customer_price FROM customer_summary
E
SELECT price(customer_spend, customer_units) AS customer_price FROM customer_summary