Course Solutions Uncategorized (Solved) : Create Table Products Productid Number Null Productname Varchar2 40 Null Quantityperunit V Q30652676 . . . .

(Solved) : Create Table Products Productid Number Null Productname Varchar2 40 Null Quantityperunit V Q30652676 . . . .

 

CREATE TABLE Products

(

ProductID NUMBER NOT NULL,

ProductName VARCHAR2(40) NOT NULL,

QuantityPerUnit VARCHAR2(20),

UnitPrice NUMBER,

UnitsInStock NUMBER,

UnitsOnOrder NUMBER,

ReorderLevel NUMBER,

Discontinued NUMBER(1) NOT NULL,

CONSTRAINT PK_Products

PRIMARY KEY (ProductID),

CONSTRAINT CK_Products_UnitPrice   CHECK ((UnitPrice>= 0)),

CONSTRAINT CK_ReorderLevel   CHECK ((ReorderLevel>= 0)),

CONSTRAINT CK_UnitsInStock   CHECK ((UnitsInStock>= 0)),

CONSTRAINT CK_UnitsOnOrder   CHECK ((UnitsOnOrder>= 0)))

/

I have provided SQL code to create all tables and insertall data. There is an error in setting referential integrity: oneof the tables is missing references. Read the code and identify theproblem. You can either modify create table statement or add altertable statement to include missing references

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

(Answered) : Role Played Taxes Supporting Charlemagne S Government Described Limited B Essential C Equ Q36283845(Answered) : Role Played Taxes Supporting Charlemagne S Government Described Limited B Essential C Equ Q36283845

<br/><img src="https://media.cheggcdn.com/media%2Fd15%2Fd152b21c-20cf-4e64-8d44-5e4bcfdc4d1a%2Fimage.png" alt="The role played by taxes in supporting Charlemagnes government is described as: a. Very limited. b. Essential c. Equal to th" aria-describedby="j1t"/>The role played by taxes in supporting