I want to create an Entity-Relationship-Modell for my Database. But i have Problems with thr ternary Relationship. How should this look like for the sql code below?
ternary Relationship1
CREATE TABLE sell(
employee_id INTEGER,
serial_number CHAR(9),
customer_id INTEGER,
PRIMARY KEY (serial number),
FOREIGN KEY(employee_id) REFERENCES Employee(employee_id) ON DELETE CASCADE,
FOREIGN KEY(serial_number) REFERENCES Product(serial_number) ON DELETE CASCADE,
FOREIGN KEY(customer_id) REFERENCES Customer(customer_id) ON DELETE CASCADE
);