ER Diagrams, Data Structure Diagrams and Relationship Types using the Footy Tips Database.

Slides:



Advertisements
Similar presentations
Database Design: Normalization J.G. Zheng June 29 th 2005 DB Chapter 4.
Advertisements

The Relational Model J.G. Zheng May 15 th Introduction Edgar F. Codd, 1970 One sentence to explain relational database model: Data are organized.
Data Modeling. What are you keeping track of? You begin to develop a database by deciding what you are going to keep track of. Each thing that you are.
Solution to Q1 Note: the mandatory side of the relationships are not identified.
Data Design The futureERD - CardinalityCODINGRelationshipsDefinition.
Final Jeopardy Question Type Category 1 Here. Type Category 2 Here 100 Type Category 4 Here Type Category 5 Here Type.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 2 Relational Theory DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH.
Translating from ER to Relationship Schema Adapted from Juliana Freire.
Tuesday, September 21, MIS Lecture Notes1 Homework #3 Results Total points 166 Overall grades: –Average or 80% –Minimum 0 –Maximum 163.
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
COURSE REGISTRATION SYSTEM Case study IST2101. Case Study: Course Registration (1) IST2102 You are helping Penn State create a course registration system.
Database Design Concepts
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
Q1: What is DBMS and explain its architecture. Q2: Explain Data Independence in detail. Q3: What is database user and explain the types of database user.
1 A Guide to MySQL 2 Database Design Fundamentals.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200.
Feud Round 1 Type Question here Move to next round Move to next round.
DirtBike Order Database– ER Diagram Prepared by (Your Name) Summer 2013.
M1G Introduction to Database Development 4. Improving the database design.
Forms and Subforms 5.02 Understand database queries, forms, and reports used in business.
Entity-Relationship (E-R) Diagrams
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
SE305 Database System Technology 23/10/2014 Quiz-2.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
Type your question here. Type Answer Type your question here. Type Answer.
E-R to Relational - Basic
Prepared by: Chavda Meet (09IT049) Busa Ankit (09IT035) Guided By: Prof. Komil B. Vora.
Order Database – ER Diagram Prepared by Megan Foster Fall Semester 2014.
 Taber Shimono Lilyana Gross Andrea Nelson Chelsea Ball Eric Svendsen Shefflette.
Planning & Creating a Database By Ms. Naira Microsoft Access.
CTFS Workshop Shameema Esufali Asian data coordinator and technical resource for the network
Databases and E-R Diagrams Access/IPS Walsall College of Arts & Technology.
Entity relationship diagram Name: Quian Crosby Form:6AQ Subject: Information Technology Teacher: Ms. D. Anderson.
Done By : Gillian Swaby. Objectives: 1. What is an Entity-Relationship Diagram? 2.What are the symbols used in ERD? Explain each. 3. What is a one- to-
Understand Primary, Foreign, and Composite Keys Database Administration Fundamentals LESSON 4.2.
Logical Database Design Transparencies 1. ©Pearson Education 2009 Objectives How to create a set of tables from an ER model. How to check that the tables.
4th Grade Common Core Math Practice and Solutions for 4th Grade Common Core Math Standard 4.NF.7 Multiple Choice Set #1 without Answers Multiple Choice.
Order Database – ER Diagram Prepared by Bryan Borcher Spring 2014.
Microsoft Access 2010 Chapter 11 Database Design.
Conversion from ER diagram to relational model 1 ER is a visual model The relational model is a matemathical model.
5 1 Normalization of Database Tables. 5 2 Database Tables and Normalization Normalization –Process for evaluating and correcting table structures to minimize.
Moya messam.  Definition: An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a.
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium Database Fundamentals Data.
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
Relational Databases – Further Study I think we’ve covered all you need to know for GCSE about relational databases I’m not aware of any practical coursework.
Order Database – ER Diagram Prepared by Evan Hollister Spring 2016.
Order Database – ER Diagram
Order Database – ER Diagram
Databases – Exam questions
Order Database – ER Diagram
Order Database – ER Diagram
CSCI-100 Introduction to Computing
Payroll Management System
Order Database – ER Diagram
Entity relationship diagrams
PHP and MySQL.
Order Database – ER Diagram
Relationships as Primary & Foreign Keys
Order Database – ER Diagram
ER Diagram Master How to use this template
Software requirements
Lesson Objectives Aims You should know about: 1.3.2:
Day 2 - Basic Database Backbone
Understand the purpose of normalisation in terms of reducing duplication of data  Understand the purpose of Primary and Secondary Keys in a Database  Learning.
MIS2502: Data Analytics Relational Data Modeling 3
G061 - Data Dictionary.
Database Dr. Roueida Mohammed.
Presentation transcript:

ER Diagrams, Data Structure Diagrams and Relationship Types using the Footy Tips Database

Reviewing Our Data Tipster ID Pick 1H Tipster ID MatchPick 11H MatchRound Home Team Away TeamResult 11GeelongSt KildaH Tipster ID First Name Last Name 1MattWilson tblTipsters tblTips tblFixtures We have our data in 3NF – but this can be done in 2NF How do these tables relate to each other?

Entity Relationship (ER) Diagrams Entities are Database Objects such as tables and reports We have 3 tables at the moment tblTipsters tblFixtures tblTips

ER Diagram: Attributes These tables have attributes… (fields in this case!) tblTipsters tblFixtures tblTips TipsterID Match Pick Match Round Home Away Result Firstname TipsterID Lastname

ER Diagrams: Relationships These tables are related to eachother… tblTipsters tblFixtures tblTips TipsterID Match Pick Match Round Home Away Result Firstname TipsterID Lastname Makes A… Are used for…

ER Diagram Complete Here is out completed ER Diagram tblTipsters tblFixtures tblTips TipsterID Match Pick Match Round Home Away Result Firstname TipsterID Lastname Makes A… Are used for…

Data Structure Diagram Now that we can see how the data is related, we can work on our structure First we need to have the tables in 3NF MatchRound Home Team Away TeamResult 11GeelongSt KildaH Tipster ID First Name Last Name 1MattWilson tblTipsters tblTips tblFixtures Tipster ID MatchPick 11H Field TipsterID First Name Last Name Field TipsterID Match Pick Field Match Round Home Team Away Team Result We just want the table structures from here

Creating the Relationships How we find the fields that match between tables… First, the Tipsters and Tips are related by what? Answer: TipsterID! Field TipsterID First Name Last Name Field TipsterID Match Pick Field Match Round Home Team Away Team Result tblTipsters tblTips tblFixtures Second, the Fixtures and Tips are related by what? Answer: Match!

Relationship Types We have created our relationships, but what types of relationships have we created? Question: How many times will a TipsterID be in tblTipsters? Answer: Once… Field TipsterID First Name Last Name Field TipsterID Match Pick Field Match Round Home Team Away Team Result tblTipsters tblTips tblFixtures 1 Question: How many times will a TipsterID be in tblTips? Answer: Many… ∞ Question: How many times will a Match by in tblFixtures? Answer: Once… 1 Question: How many times will a Match by in tblTips? Answer: Many… ∞

Completed Relationship Types Field TipsterID First Name Last Name Field TipsterID Match Pick Field Match Round Home Team Away Team Result tblTipsters tblTips tblFixtures 1 ∞ 1 ∞ Here we have our final Data Structure Diagram The tblTipsters – tblTips relationship is One to Many The tblFixtures – tblTips relationship is One to Many