CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 16: Databricks Certified Data Analyst Associate

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…

Nội dung câu hỏi

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?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. SELECT PRICE customer_spend, customer_units AS customer_priceFROM customer_summary
  2. B. SELECT price -FROM customer_summary
  3. C. SELECT function(price(customer_spend, customer_units)) AS customer_priceFROM customer_summary
  4. D. SELECT double(price(customer_spend, customer_units)) AS customer_priceFROM customer_summary
  5. E. SELECT price(customer_spend, customer_units) AS customer_priceFROM customer_summary — đáp án hiện tại

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề