Question: Is this correct. Do i need a primary key for the Items Table? using SQL server create table Customer ( CustomerId int not null, FirstName

Is this correct. Do i need a primary key for the Items Table? using SQL server

create table Customer ( CustomerId int not null, FirstName varchar(25) null, LastName varchar(25) null, City varchar(25) null, States varchar(25) null, constraint Customer-pk1 primary key (CustomerID) );

create table Items ( CustomerId int not null, OrderDate date null, Item varchar(25) null, Quanity int null, Price money null,

constraint Items-fk1 foreign key (CustomerID) references Customer (CustomerId) );

Is this correct. Do i need a primary key for the Items

Customers table customerid firstname lastname 10101 10298 10339 10410 city state John Leroy Anthony Sanchez Winslow Mary Ann Howel Gray Lynden Pinetop Washington Arizona Arizona South Brown Charleston Carolina North Carolina Colorado Arizona 10429 Sarah Kevin Isabela Moore Graham reensboro 10438 Smith Durango Yuma 10449 items ordered table customerid order date 10101 10339 10449 10449 10438 10449 10101 10438 10449 10101 10298 itemquantity price 30-Jun-1999 Raft 27-Jul-1999 Umbrella 14-Aug-1999 Ski Poles 18-Dec-1999 Tent 02-Dec-1999 Pillow 22-Dec-1999 Canoe 02-Jan-2000 Lantern 18-Jan-2000 Tent 29-Feb-2000 Flashlight 1 08-Mar-2000 Sleeping Bag 2 01-Apr-2000 Ear Muffs 1 1 1 2 1 1 1 1 1 58.00 4.50 25.50 88.00 8.50 280.00 16.00 79.99 4.50 88.70 12.50 Customers table customerid firstname lastname 10101 10298 10339 10410 city state John Leroy Anthony Sanchez Winslow Mary Ann Howel Gray Lynden Pinetop Washington Arizona Arizona South Brown Charleston Carolina North Carolina Colorado Arizona 10429 Sarah Kevin Isabela Moore Graham reensboro 10438 Smith Durango Yuma 10449 items ordered table customerid order date 10101 10339 10449 10449 10438 10449 10101 10438 10449 10101 10298 itemquantity price 30-Jun-1999 Raft 27-Jul-1999 Umbrella 14-Aug-1999 Ski Poles 18-Dec-1999 Tent 02-Dec-1999 Pillow 22-Dec-1999 Canoe 02-Jan-2000 Lantern 18-Jan-2000 Tent 29-Feb-2000 Flashlight 1 08-Mar-2000 Sleeping Bag 2 01-Apr-2000 Ear Muffs 1 1 1 2 1 1 1 1 1 58.00 4.50 25.50 88.00 8.50 280.00 16.00 79.99 4.50 88.70 12.50

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!