SQL Database urgent question

Jan 6th, 2014
KateS
Category:
Programming
Price: $5 USD

Question 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.

Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Duke University
PREMIUM TUTOR

Studypool has helped 1,244,100 students

8 Reviews


Summary
Quality
Communication
On Time
Value
Five Star Tutor
Dec 6th, 2016
" Outstanding Job!!!! "
SjSurvivor143
Nov 20th, 2016
" Thanks for the help. "
Joemoe
Nov 7th, 2016
" <3 it, thanks for saving me time. "
tinytim47
Oct 29th, 2016
" Wow this is really good.... didn't expect it. Sweet!!!! "
pmallory
Oct 24th, 2016
" Totally impressed with results!! :-) "
mixedballz
Oct 15th, 2016
" excellent work as always thanks for the help "
kiln82
Oct 2nd, 2016
" awesome work thanks "
darnay
Sep 23rd, 2016
" The best tutor out there!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1831 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors