SQL - Table Relationships
You wrote this SQL to create a one-to-many relationship:
But you get an error. What is the most likely cause?
CREATE TABLE Orders (OrderID INT PRIMARY KEY, CustomerID INT, FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID));
But you get an error. What is the most likely cause?
