nerdexam
Microsoft

70-433 · Question #10

You have two tables named Customers and Orders. They are related by a foreign key constraint on the CustomerID on each table. You need to generate the following XML structure that includes all…

The correct answer is D. SELECT CustomerName. See the full explanation below for the reasoning.

Question

You have two tables named Customers and Orders. They are related by a foreign key constraint on the CustomerID on each table. You need to generate the following XML structure that includes all customers and their related orders. <Root> <Customer> <CustomerName>Customer1</CustomerName> <Orders> <Order> <OrderDate>1/1/2008</OrderDate> <OrderValue>422</OrderValue> </Order> <Order> <OrderDate>4/8/2008</OrderDate> <OrderValue>300</OrderValue> </Order> ... </Orders> ... </Customer> <Root> Which query should you use?

Options

  • ASELECT CustomerName,
  • BSELECT *
  • CSELECT CustomerName,
  • DSELECT CustomerName,

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    7% (2)
  • C
    14% (4)
  • D
    76% (22)

Community Discussion

No community discussion yet for this question.

Full 70-433 Practice