フリー問題

Databricks Certified Data Analyst Associate のフリー問題 7 / 20 問目

問題文

An analyst must list all products together with the number of orders each received, and products with no orders must appear with zero. Which combination of a join type and an aggregate handles the zero correctly?

選択肢

  1. A left join from products to orders with a count of all rows, because the unmatched product rows contribute nothing to a row count.
  2. A left join from products to orders with a count of a column from the orders side, because counting a column ignores the NULLs produced by unmatched rows.
  3. An inner join with a count of all rows, and a separate query to append the products that returned no rows with a literal zero.
  4. A full outer join with a count of all rows, because it keeps unmatched rows from both sides and therefore guarantees the zero.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。