nerdexam
Microsoft

70-457 · Question #9

You develop a Microsoft SQL Server 2012 database that contains tables named Customers and Orders. The tables are related by a column named CustomerId. You need to create a query that meets the…

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

Question

You develop a Microsoft SQL Server 2012 database that contains tables named Customers and Orders. The tables are related by a column named CustomerId. You need to create a query that meets the following requirements:

  • Returns the CustomerName for all customers and the OrderDate for any

orders that they have placed.

  • Results must not include customers who have not placed any orders.

Which Transact-SQL query should you use?

Options

  • ASELECT CustomerName, OrderDate
  • BSELECT CustomerName, OrderDate
  • CSELECT CustomerName, OrderDate
  • DSELECT CustomerName, OrderDate

How the community answered

(51 responses)
  • A
    6% (3)
  • B
    10% (5)
  • C
    4% (2)
  • D
    80% (41)

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice