nerdexam
Microsoft

70-457 · Question #60

You are a database developer of a Microsoft SQL Server 2012 database. The database contains a table named Customers that has the following definition: You need to ensure that the CustomerId column…

The correct answer is A. ALTER TABLE Orders. See the full explanation below for the reasoning.

Question

You are a database developer of a Microsoft SQL Server 2012 database. The database contains a table named Customers that has the following definition:

You need to ensure that the CustomerId column in the Orders table contains only values that exist in the CustomerId column of the Customer table. Which Transact-SQL statement should you use?

Exhibit

70-457 question #60 exhibit

Options

  • AALTER TABLE Orders
  • BALTER TABLE Customer
  • CALTER TABLE Orders
  • DALTER TABLE Customer
  • EALTER TABLE Orders

How the community answered

(60 responses)
  • A
    82% (49)
  • B
    2% (1)
  • C
    8% (5)
  • D
    7% (4)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice