Presentation is loading. Please wait.

Presentation is loading. Please wait.

SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)

Similar presentations


Presentation on theme: "SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)"— Presentation transcript:

1 SQL Schemas DATA SCIENCE BOOTCAMP

2 Schema The structure of the database (relationships between tables)

3

4

5

6

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

12

13

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

18

19

20

21

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

25

26

27


Download ppt "SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)"

Similar presentations


Ads by Google