Download presentation
Presentation is loading. Please wait.
Published byJeremy Burns Modified over 9 years ago
1
SQL Schemas DATA SCIENCE BOOTCAMP
2
Schema The structure of the database (relationships between tables)
7
One to One relationship one customer one address
8
One to One relationship one customer one address Each customer can have only one address, Each address can belong only to one customer
9
One to One relationship one customer one address one movie one title_year Each customer can have only one address, Each address can belong only to one customer
10
One to One relationship One to Many relationship Many to Many relationship
11
One to One relationship One to Many relationship Many to Many relationship
14
One to Many relationship one customer many orders
15
One to Many relationship one customer many orders Each customer can have multiple orders, one order can belong only to one customer
16
One to Many relationship one customer many orders one MPAA rating many movies Each customer can have multiple orders, one order can belong only to one customer
17
One to One relationship One to Many relationship Many to Many relationship
22
many orders many items
23
Many to Many relationship many orders many items Each order can have multiple items, Each item can be in multiple orders
24
Many to Many relationship many orders many items many movies many actors many subgenres many movies Each order can have multiple items, Each item can be in multiple orders
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.