Microsoft
70-433 · Question #20
You have a table named Products.Product. The table has columns ProductID, Name, Size, and Category. You have a variable named @XML with following XML value: <Root> <Category Name="Socks" />…
The correct answer is C. WITH XMLTable. See the full explanation below for the reasoning.
Question
You have a table named Products.Product. The table has columns ProductID, Name, Size, and Category. You have a variable named @XML with following XML value:
<Root> <Category Name="Socks" /> <Category Name="Pants" /> <Category Name="Shirts" /> </Root> You are tasked to write a query that lists the products in Products. Product that match the categories listed in the XML document. You need to write a query to accomplish the task. Which query should you write?
Options
- ASELECT p.ProductID, p.Name, p.Size, p.Category
- BSELECT p.ProductID, p.Name, p.Size, p.Category
- CWITH XMLTable
- DWITH XMLTable
How the community answered
(55 responses)- A5% (3)
- B4% (2)
- C82% (45)
- D9% (5)
Community Discussion
No community discussion yet for this question.