Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2010 All Rights Reserved.

Slides:



Advertisements
Similar presentations
 Citations give credit to the source! Citations allow researchers to build on each other’s work.
Advertisements

Title of Presentation Author 1, Author 2, Author 3, Author 4 Abstract Introduction This is my abstract. This is my abstract. This is my abstract. This.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010, All Rights Reserved 1.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010 All Rights Reserved. 1.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2014 All Rights Reserved.
Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2014 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved. 1.
Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2010 All Rights Reserved.
Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved. 1.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2014 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010 All Rights Reserved. 1.
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2010, All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved.
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2014, Fred McClurg, All Rights.
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2010, All Rights Reserved.
A Guide to SQL, Seventh Edition. Objectives Introduce Premiere Products, a company whose database is used as the basis for many of the examples throughout.
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2014, Fred McClurg, All Rights.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved. 1.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved.
Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010, All Rights Reserved 1.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2014 All Rights Reserved.
Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010 All Rights Reserved. 1.
Data Model Examples USER SPECIFICATIONS.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved. 1.
Case study Lisa’s Bookstore IST210.
A Guide to SQL, Eighth Edition 1 Chapter One Introduction to Premiere Products, Henry Books, and Alexamara Marina Group.
HTML B OOT C AMP Itinerary Kirkwood Continuing Education © Copyright 2015, Fred R. McClurg All Rights Reserved.
Vocabulary for Envelope Addressing Copyright 2015 Donna Barr All rights reserved by author
Database Management System Lecture 4 The Relational Database Model- Introduction, Relational Database Concepts.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2015, Fred McClurg, All Rights.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2015 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2015, Fred McClurg, All Rights.
Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2015, Fred McClurg, All Rights.
HTML B OOT C AMP Chapter 11 Frames Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
A Guide to MySQL. 2 Objectives Introduce Premiere Products, a company whose database is used as the basis for many of the examples throughout the text.
AFI Top Ten Database Ben English Emma Backman. The Tables.
CS499 Project #3 XML mySQL Test Generation Members Erica Wade Kevin Hardison Sameer Patwa Yi Lu.
Main Parts of a Book Non-fiction Texts.
XAMPP Introduction to Web Programming Kirkwood Community College Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved Web Server Software Distribution.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2015, Fred McClurg, All Rights.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2015, Fred McClurg, All Rights.
1 Session 6: Database Best Practice iNET Academy Open Source Web Development.
Title:___________________________________________________ Author:_________________________________________________ Place photo here.
HTML B OOT C AMP Chapter 2: Quick Start Kirkwood Continuing Education Fred McClurg, © Copyright 2015, Fred McClurg All Rights Reserved.
FileZilla Introduction to Web Programming Kirkwood Community College Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2015 All Rights Reserved.
Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2015, Fred McClurg, All Rights.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2015, Fred McClurg, All Rights.
Data Modeling AND ER MODELS.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2016, Fred McClurg, All Rights.
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
A Guide to MySQL.
Kirkwood Center for Continuing Education
خشنه اتره اهورهه مزدا شيوۀ ارائه مقاله 17/10/1388.
Written and Illustrated by
مناهــــج البحث العلمي
Chapter 1: Introduction
Kirkwood Center for Continuing Education
Kirkwood Center for Continuing Education
Yes, I want to be a Health Center advocate!
ER Diagram Master How to use this template
Kirkwood Center for Continuing Education
Modeling Text-Based Requirements and their Relationship to Design
Presentation transcript:

Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2010 All Rights Reserved.

Chapter Nine Relationship Types /courses/php/slides/chapter09c.relations hips.ppt

Relationship Types One to One Relationship One to Many Relationship Many to Many Relationship

user id first last shipping_id One to One Relationship Definition: One table is related to one and only one other table Example Schema:shipping id address city state zip

shipping id: 1 address: 524 N Laura Street city: Maryville state: MO zip: One to One Limitations User id: 3 first: Fred last: McClurg shipping_id: 2 Example Data: user id: 1 first: Wanda Lee last: McClurg shipping_id: 1 shipping id: 2 address: 1640 Fawn Drive city: North Liberty state: IA zip: shipping id: 3 address: 200 Hawkins Drive city: Iowa City state: IA zip: ????

One to One Relationship Considerations Note: 1.One to one relationships are rare 2.Consider eliminating one to one relationships by combining the columns into the same table

One to Many Relationship Definition: One table is related to many (one or more) other tables Schema Diagram: book id title author format_id format id type

format id type book id title author format_id book id title author format_id One to Many Relationship Definition: One table is related to many (one or more) other tables Example Schema:

One to Many Relationship (cont.)book id: 3 title: Expelled author: Ben Stein format_id: 4 format id: 4 type: DVD format id: 3 type: Paperback format id: 2 type: Hardback format id: 1 type: CD book id: 1 title: Dinner with a Perfect Stranger author: David Gregory format_id: 2 book id: 2 title: Dinner with a Perfect Stranger author: David Gregory format_id: 1 book id: 4 title: Learning PHP & MySQL author: Davis, Phillips format_id: 3 Example Data:

Many to Many Relationship Definition: Two (or more) tables are related to two (or more) other tables Schema Diagram: book id title author order id placed

Many to Many Relationship (cont.)order_to_book id order_id book_id Example Data:book id title author order id placed

Many to Many Data Example order_to_book id: 1 order_id: 1 book_id: 1 User: Fred Order: 1 Purchase: 2 itemsbook id: 1 title: My Life as Crocodile Junk Food order id: 1 placed: user_id: 1 order id: 2 placed: user_id: 2 book id: 3 title: Fireproof book id: 2 title: Soon book id: 4 title: Babylon Rising order_to_book id: 2 order_id: 1 book_id: 2 user id: 1 first: Fred last: McClurg order_to_book id: 3 order_id: 2 book_id: 3 order_to_book id: 4 order_id: 2 book_id: 4 user id: 2 first: Martha last: McClurg User: Martha Order: 2 Purchase: 2 items

to be continued... ses/php/slides/chapter09d.normalization.ppt