Question: Here is the table: CREATE TABLE Showings( theaterID INT, showingDate DATE, startTime TIME, movieID INT, priceCode CHAR(1), PRIMARY KEY(theaterID, showingDate, startTime), ); I need to
Here is the table:
CREATE TABLE Showings(
theaterID INT,
showingDate DATE,
startTime TIME,
movieID INT,
priceCode CHAR(1),
PRIMARY KEY(theaterID, showingDate, startTime),
);
I need to add this constraint: "In Showings, if movieID is not NULL, then priceCode must also not be NULL"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
