sql schemas data science bootcamp. schema the structure of the database (relationships between...

27
SQL Schemas DATA SCIENCE BOOTCAMP

Upload: jeremy-burns

Post on 01-Jan-2016

235 views

Category:

Documents


0 download

TRANSCRIPT

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

SQL Schemas

DATA SCIENCE BOOTCAMP

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

Schema

The structure of the database(relationships between tables)

Page 3: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 4: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 5: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 6: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 7: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)

One to One relationship

one customer one address

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

One to One relationship

one customer one address

Each customer can have only one address,Each address can belong only to one customer

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

One to One relationship

one customer one addressone movie one title_year

Each customer can have only one address,Each address can belong only to one customer

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

One to One relationship

One to Many relationship

Many to Many relationship

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

One to One relationship

One to Many relationship

Many to Many relationship

Page 12: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 13: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 14: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)

One to Many relationship

one customer many orders

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

One to Many relationship

one customer many orders

Each customer can have multiple orders,one order can belong only to one customer

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

One to Many relationship

one customer many ordersone MPAA rating many movies

Each customer can have multiple orders,one order can belong only to one customer

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

One to One relationship

One to Many relationship

Many to Many relationship

Page 18: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 19: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 20: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 21: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 22: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)

Many to Many relationship

many orders many items

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

Many to Many relationship

many orders many items

Each order can have multiple items,Each item can be in multiple orders

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

Many to Many relationship

many orders many itemsmany movies many actors

many subgenres many movies

Each order can have multiple items,Each item can be in multiple orders

Page 25: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 26: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Page 27: SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)