SQL Database urgent question

User Generated

qnavny16

Programming

Description

 


 

ID


 

 

NAME


 

 

ADDRESS


 

 

P_CODE


 

 

RATING


 

 

123


 

 

Brown,
  James


 

 

1 Victoria
  Rd. Glasgow


 

 

G2 2RB


 

 

1


 

 

456


 

 

Smith, Mark
  E.


 

 

100 Oxford
  Rd. Manchester


 

 

M18 2RX


 

 

2


 

 

789


 

 

Black,
  Pauline


 

 

37 High St.
  Coventry


 

 

CV1 5KA


 

 

3


 




 

 

 

Another table represents the customer orders with attributes: ORDER_NO, DATE, CUST_ID,
STOCK_ID, QUANTITY.


Identify the primary key and foreign key relationships to the customer
table.

 

The primary key should be ID? And what will be the foreign key and why?

 

Thanks.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Related Tags