フリー問題

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

問題文

A customers table has one row per customer. An orders table has one row per order, and a customer can have many orders. The analyst writes a query that joins customers to orders on the customer key and then counts the rows. The result is much larger than the number of customers. What does this indicate?

選択肢

  1. The orders table has a declared foreign key that is not enforced, and unenforced keys cause the optimizer to emit each matching row twice.
  2. The join is behaving normally: one customer row is repeated once for each of its orders, so the row count reflects orders, not customers.
  3. The join key contains NULL values, and NULL keys match every row in that table on the other side, which inflates the result.
  4. An inner join was used where a left join was required, and inner joins duplicate rows while left joins do not.

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

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