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

Câu 37: AWS Certified Data Engineer - Associate DEA-C01

A data engineer is using Amazon Athena to analyze sales data that is in Amazon S3. The data engineer writes a query to retrieve sales amounts for 2023 for several products from a table named sales_data. However, the query does not return results for all of the products that are in the sales_data table. The data engine…

Nội dung câu hỏi

A data engineer is using Amazon Athena to analyze sales data that is in Amazon S3. The data engineer writes a query to retrieve sales amounts for 2023 for several products from a table named sales_data. However, the query does not return results for all of the products that are in the sales_data table. The data engineer needs to troubleshoot the query to resolve the issue. The data engineer's original query is as follows:SELECT product_name, sum(sales_amount)FROM sales_data -WHERE year = 2023 -GROUP BY product_name -How should the data engineer modify the Athena query to meet these requirements?

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. Replace sum(sales_amount) with count(*) for the aggregation.
  2. B. Change WHERE year = 2023 to WHERE extract(year FROM sales_data) = 2023. — đáp án hiện tại
  3. C. Add HAVING sum(sales_amount) > 0 after the GROUP BY clause.
  4. D. Remove the GROUP BY clause.

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ề