nerdexam
Microsoft

70-457 · Question #55

You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.) You need to display rows from the Orders table for the…

The correct answer is D. SELECT OrderId, OrderDate, Amount, Name, Country. See the full explanation below for the reasoning.

Question

You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.) You need to display rows from the Orders table for the Customers row having the CustomerId value set to 1 in the following XML format. Which Transact-SQL query should you use?

Exhibits

70-457 question #55 exhibit 1
70-457 question #55 exhibit 2

Options

  • ASELECT OrderId, OrderDate, Amount, Name, Country
  • BSELECT OrderId, OrderDate, Amount, Name, Country
  • CSELECT OrderId, OrderDate, Amount, Name, Country
  • DSELECT OrderId, OrderDate, Amount, Name, Country
  • ESELECT Name, Country, OrderId, OrderDate, Amount
  • FSELECT Name, Country, Orderld, OrderDate, Amount
  • GSELECT Name AS '@Name', Country AS '@Country', OrderId, OrderDate, Amount
  • HSELECT Name AS'Customers/Name', Country AS 'Customers/Country', OrderId,OrderDate,

How the community answered

(24 responses)
  • C
    4% (1)
  • D
    83% (20)
  • G
    8% (2)
  • H
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice