AFM341 Lecture Notes - Lecture 20: Compound Key, Relational Database

47 views3 pages
We need to turn this many to many relationship into TWO one to many relationships that can be
easily implemented in a relational database
•
We define the Order Items class and model a composition association between Orders and Order
Items
•
Note that the PK of Order Items is the combination of Order number and product number
(concatenated key or composite key)
•
The order items table will include quantity ordered and price attributes because those attributes
depend on both the Order and the Product ordered
•
Use Microsoft Access to show how the structure model would be implemented in a relational
database
•
Sunset graphics' relational database
See below a list of tables, attributes, data types, field sizes and PK/FK •
Relational database planning for attributes
AFM 341 Page 9
Unlock document

This preview shows page 1 of the document.
Unlock all 3 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents