SQL - Database Design and Normalization
A developer wrote this table creation:
But the database throws an error. What is the likely cause?
CREATE TABLE orders (order_id INT PRIMARY KEY, customer_id INT NOT NULL, FOREIGN KEY (customer_id) REFERENCES customers(id) ON DELETE SET NULL);But the database throws an error. What is the likely cause?
