Write the commands to create Order and OrderDetail table with key constraints and foreign key constraints.
Below are the commands to create the "Order" and "OrderDetail" tables with key constraints and foreign key constraints:
Creating the Order table:
CREATE TABLE Order (
OrderID INT PRIMARY KEY,
CustomerID VARCHAR(10),
_________ ________ ___ ___ ___ _____ __________ __________ __________.
______ _________ ________ ______ __________ ______ _________.
_____ ______ ___ _________ __________ _____ ____ ________ ___ _____ _____.
__________ _______ _________ ________ __________ _________ _____.
_______ _______ ________ _____ __________ _____ ______ _______ _______ ______ __________ ___.
___ ____ ________ ________ _______ _____ ________.
_______ _______ __________ _______ _____ _____ __________ ________ __________ ______ _____.
_________ _____ _____ __________ __________ __________.
_____ __________ __________ ____ __________ ____ __________ ______ _________ ____ _________ ____.
____ _____ ______ _______ ______ ____ ___ ________.
_________ ___ ______ ________ _______ ___ _____ ________ ___.
___ ___ _______ ______ ___ _________ _________ ______ ___ _______ _________.
_______ _____ ___ ________ _________ ____ __________ ___.
____ _______ ________ ______ __________ ______.
_______ _____ _____ ___ ______ ______ _________ ___ _____ ________ _______ ___.
___ _________ __________ ____ _______ _____ _________ __________ __________ ______.
________ _________ _________ ____ _______ ___ ________ ________ ________.
_______ ___ ____ _______ _____ ___.
___ ____ __________ _________ _______ __________ __________ ____ ___ ___ ________ ________.
__________ _____ ____ _____ ____ _______ ________ _______ __________ _________ _________ _________.
_________ ________ _______ _____ ___.
_________ ____ ___ ______ _______ _______.
_________ ___ _______ ________ __________.
___ ________ ______ _________ _____ ____ ________ ________ __________.
________ _________ _____.
Get Full Answer on WhatsApp