CREATE TABLE Transaction ( 
     OrderID SMALLINT UNSIGNED, 
    ProductID SMALLINT UNSIGNED, 
    Quantity TINYINT UNSIGNED CHECK(Quantity <= 100), 
    AmountSpent DECIMAL(6,2) UNSIGNED, 
    FOREIGN KEY(OrderID) REFERENCES Invoice(OrderID), 
    FOREIGN KEY(ProductID) REFERENCES Stock(ProductID)
); 

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: