Question: I can't create the table. It says check error on the check. Not supported by MySql workbench I CREATE TABLE KCT_LINEITEM( RentalID INT, CostumeID SMALLINT,

I can't create the table. It says check error on the "check." Not supported by MySql workbench

I CREATE TABLE KCT_LINEITEM( RentalID INT, CostumeID SMALLINT, Rate NUMERIC (8,2) CHECK(Rate

I CREATE TABLE KCT_LINEITEM( RentalID INT, CostumeID SMALLINT, Rate NUMERIC (8,2) CHECK(Rate > 0 ) NOT NULL, Deposit NUMERIC (8,2) NOT NULL, PRIMARY KEY (RentalID, Costume ID), FOREIGN KEY (CostumeID) REFERENCES KCT_Costume (CostumeID), FOREIGN KEY (RentalID) REFERENCES KCT_Rental (RentalID) );

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!