展示物をVievし、製品情報と在庫表の構造を調べます。 供給部門から、QUANTITY ON HANDが5未満であるすべての製品について、PRODUCT _ID、SUPPLIER ID、およびQUANTITY_ONHANDを含むリストを提供する必要があります。 タスクを実行できる2つのSQLステートメントはどれですか? (2つ選択してください)
正解:B,D
Given the requirement to list PRODUCT_ID, SUPPLIER_ID, and QUANTITY_ON_HAND for products with QUANTITY_ON_HAND less than five: * B. This query correctly joins the two tables on PRODUCT_ID and filters rows where QUANTITY_ON_HAND is less than five. However, the syntax presented here might be incorrect due to improper placement of the condition within the ON clause; it should be in a WHERE clause. * D. This query correctly joins the two tables on PRODUCT_ID and applies the condition in a WHERE clause, which is the proper way to filter rows after performing the join. Incorrect options: * A: The syntax uses NATURAL JOIN and AND incorrectly; also, conditions should be in a WHERE clause, not combined with the JOIN clause. * C: Similar to A, this option incorrectly places a condition directly in the JOIN clause without using a WHERE clause.