question 5  use the following picture to answer the following question Assuming all other tables are created, write a statement to create Inventory table with a Composite Primary key (INVID, ITEMID) and two Foreign Keys (INVID and ITEMID).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

question 5 

use the following picture to answer the following question

Assuming all other tables are created, write a statement to create Inventory table with a Composite Primary key (INVID, ITEMID) and two Foreign Keys (INVID and ITEMID).

CUSTOMER Table
CUSTID | LNAME | FNAME | CITY
| STATE | PHONE
HARRIS
EDWARDS MITCH
107
PAULA
OSSEO
WI
7155559035
232
WASHBURN WI
7155556975
133
GARCIA
MARIA
RADISSON
WI
7155558332
154
MILLER
LEE
SILVER
WI
7155559002
179
CHANG
ALISA
SISBAY
WI
7155550087
CUSTID
ORDER Table
ORDERID|INVID|ORDERDATE | CUSTID| ORDER_PRICE|QUANTITY
1057
11668 5/29/2001
107
259.99
1
1057
11776 5/29/2001
107
59.90
2
11777 5/29/2001
11780 5/31/2001
1058
232
29.95
59.95
1
1059
133
1
1060
11775 5/31/2001
154
59.90
2
1061
11779 6/01/2001
179
59.95
1
INVID
INVENTORY Table
INVID| ITEMID | ITEMSIZE | CCOLOR | CURR PRICE | QOH
11668
786
SIENNA
259.99
16
11669
786
FOREST
259.99
12
11775
KHAKI
KHAKI
29.95
29.95
894
S
150
11776
894
147
11777
894
L
KHAKI
29.95
59.95
120
11778
897
S
TEAL
152
117
11779
897
M
TEAL
59.95
11780
897
L
TEAL
59.95
125
ITEMID
ITEM Table
ITEMDI ITEMDESC
| CATEGORY
894
WOMEN'S HIKING SHORTS
WOMEN'S CLOTHING
WOMEN'S CLOTHING
MEN'S CLOTHING
897
WOMEN'S FLEECE PULLOVER
786
MEN'S EXPEDITION PARKA
Transcribed Image Text:CUSTOMER Table CUSTID | LNAME | FNAME | CITY | STATE | PHONE HARRIS EDWARDS MITCH 107 PAULA OSSEO WI 7155559035 232 WASHBURN WI 7155556975 133 GARCIA MARIA RADISSON WI 7155558332 154 MILLER LEE SILVER WI 7155559002 179 CHANG ALISA SISBAY WI 7155550087 CUSTID ORDER Table ORDERID|INVID|ORDERDATE | CUSTID| ORDER_PRICE|QUANTITY 1057 11668 5/29/2001 107 259.99 1 1057 11776 5/29/2001 107 59.90 2 11777 5/29/2001 11780 5/31/2001 1058 232 29.95 59.95 1 1059 133 1 1060 11775 5/31/2001 154 59.90 2 1061 11779 6/01/2001 179 59.95 1 INVID INVENTORY Table INVID| ITEMID | ITEMSIZE | CCOLOR | CURR PRICE | QOH 11668 786 SIENNA 259.99 16 11669 786 FOREST 259.99 12 11775 KHAKI KHAKI 29.95 29.95 894 S 150 11776 894 147 11777 894 L KHAKI 29.95 59.95 120 11778 897 S TEAL 152 117 11779 897 M TEAL 59.95 11780 897 L TEAL 59.95 125 ITEMID ITEM Table ITEMDI ITEMDESC | CATEGORY 894 WOMEN'S HIKING SHORTS WOMEN'S CLOTHING WOMEN'S CLOTHING MEN'S CLOTHING 897 WOMEN'S FLEECE PULLOVER 786 MEN'S EXPEDITION PARKA
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education