DADD FOREIGN KEY Orders.CustomerID TO Customers(CustomerID);
Step-by-Step Solution
Solution:
Step 1: Recall correct ALTER TABLE syntax for foreign keys
The correct syntax uses ALTER TABLE with ADD FOREIGN KEY and REFERENCES clauses.
Step 2: Check each option
ALTER TABLE Orders ADD FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID); matches the correct syntax. Options A, C, and D are incorrect or incomplete.
Final Answer:
ALTER TABLE Orders ADD FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID); -> Option A