Intro to Relational Databases

12
Intro to Relational Databases Patricia Gorla @patriciagorla Apache Cassandra Architect The Last Pickle

description

Talk given at HackCville as an introduction to relational databases.

Transcript of Intro to Relational Databases

Page 1: Intro to Relational Databases

Intro to Relational Databases

Patricia Gorla@patriciagorlaApache Cassandra ArchitectThe Last Pickle

Page 2: Intro to Relational Databases

About Me

• Cassandra Architect chez The Last Pickle

• Datastax MVP for Cassandra

• Database Geek

Page 3: Intro to Relational Databases

Google Trend Ranking db-engines.com

Page 4: Intro to Relational Databases

Data has Relationships

…but not all data models are created equal.

Page 5: Intro to Relational Databases

Case Study eCommerce

Customer TablePrimary Key Customer Name Address Phone Number

231 Yves Oran 732 13001732 Coco Saumur 123 12342599 Ralph New York 523 10929

Page 6: Intro to Relational Databases

Case Study eCommerce

Customer TablePrimary Key Customer Name Address Phone Number

231 Yves Oran 732 13001732 Coco Saumur 123 12342599 Ralph New York 523 10929

Order TableOrder Number Customer ID Product ID

10001 599 LUX10002 599 CDG10002 231 CDG

Page 7: Intro to Relational Databases

Customer TablePrimary Key Customer Name Address Phone Number

231 Yves Oran 732 13001732 Coco Saumur 123 12342599 Ralph New York 523 10929

Order TableOrder Number Customer ID Product ID

10001 599 LUX10002 599 CDG10002 231 CDG

Product TableProduct ID Product Name Price

LUX BlenderBottle 7.99CDG Pellegrino 1.49BOI Eden Pond Turmeric 32.99CHO CeraVe Moisturizer 12.99

Page 8: Intro to Relational Databases

Relational theory is built upon set theory.

Page 9: Intro to Relational Databases

Limitations Because nothing is perfect

Page 10: Intro to Relational Databases
Page 11: Intro to Relational Databases

Polyglot Persistence