Course Solutions Uncategorized (Solved) : Create Table Orders Orderid Number Null Customerid Char 5 Employeeid Number Orderdate Date Q30652697 . . . .

(Solved) : Create Table Orders Orderid Number Null Customerid Char 5 Employeeid Number Orderdate Date Q30652697 . . . .

 

CREATE TABLE Orders

(

OrderID NUMBER NOT NULL,

CustomerID CHAR(5),

EmployeeID NUMBER,

OrderDate DATE,

RequiredDate DATE,

ShippedDate DATE,

Freight NUMBER,

ShipName VARCHAR2(40),

ShipAddress VARCHAR2(60),

ShipCity VARCHAR2(15),

ShipRegion VARCHAR2(15),

ShipPostalCode VARCHAR2(10),

ShipCountry VARCHAR2(15),

CONSTRAINT PK_Orders

PRIMARY KEY (OrderID),

CONSTRAINT FK_Orders_Customers FOREIGN KEY (CustomerID)REFERENCES Customers(CustomerID),

CONSTRAINT FK_Orders_Employees FOREIGN KEY (EmployeeID)REFERENCES Employees(EmployeeID)

)

/ I have provided SQL code to create all tables andinsert all data. There is an error in setting referentialintegrity: one of the tables is missing references. Read the codeand identify the problem. You can either modify create tablestatement or add alter table statement to include missingreferences.

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 12 115 Marks Network Security 5 Marks Explain Differences Threats Vulnerabilities Attacks Q29950253 . . . .(Solved) : 12 115 Marks Network Security 5 Marks Explain Differences Threats Vulnerabilities Attacks Q29950253 . . . .

<br/><img src="https://media.cheggcdn.com/media%2F87b%2F87b220eb-be2f-4a83-a4e8-ea48d7588cbc%2Fimage" alt="12. 115 marks] Network Security a) 5 marks] Explain the differences between threats, vulnerabilities and attacks. b) 15 marks] In the context of data communications, what is integrity