化粧品の電子商取引 Web サイトの JSON ドキュメントを検討してください。 指定されたドキュメントから製品名を取得するための SQL コマンドは何でしょうか?
正解:B
To retrieve the product name, the correct SQL query will be: SELECT c.productName FROM Items c Option A is incorrect: db.Items.find({ },{productName:1,_id:0}) is a MongoDB query, not SQL. Option B is correct: SELECT c.productName FROM Items c is the correct SQL command to retrieve the product name from the given JSON document Option C is incorrect: db.Items.find( {},{quantity:1,_id:0}) is a MongoDB query and we need to find the productName, not the quantity. Option D is incorrect: SELECT c.unitCost FROM Items c is the SQL query but not correct. We need to retrieve the productName, not the unitCost. Reference: To know more about the different queries and commands, refer to the link below: https://docs.microsoft.com/en-us/learn/modules/choose-api-for-cosmos-db/2-identify-the- technology-options