Data Base Design Steps 1.Define Entity Classes (Relations/Tables) and Keys. 2.Define Relationships between Entity Classes. Normalization Steps Eliminate.

Slides:



Advertisements
Similar presentations
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module C Designing Databases and Entity-Relationship.
Advertisements

Extended Learning Module C
© McGraw-Hill Companies, Inc., McGraw-Hill/Irwin Extended Learning Module C Designing Databases and Entity-Relationship Diagramming.
Information System Engineering
Data Dictionary What does “Backordered item” mean? What does “New Customer info.” contain? How does the “account receivable report” look like?
Basic Symbols.
Normalisation Ensuring data integrity in database design 1.
Accounting 6500 Relational Databases: Accounting Applications Introduction to Normalization.
Extended Learning Module C Designing Databases and Entity-Relationship Diagramming McGraw-Hill/Irwin Copyright © 2010 by the McGraw-Hill Companies, Inc.
Introduction to Database. File Formats Comma delimited file –"s1","peter",3 –"s2","paul",2.5 –"s3","mary",3.5 –Demo: Excel – Data/Import Extended Markup.
Data Model Examples USER SPECIFICATIONS.
Entity Relationships. Relationships Relationships exist between entities The type of relationship is entirely dependent on the business rules The business.
Advanced Entity Relationship Concepts. Advanced Concepts UIDs Intersection Entities Recursive Relationships Roles Subtypes Exclusivity Historical Fan.
Database Design Sections 4 & 5 Subtype, Supertype, Mutually exclusive, non-transferability, transferable, 1:1, 1:M, M:M, Redundant, Intersection entity,
1 Advanced Computer Programming Databases. Overview What is a database? Database Basics Database Components Data Models Normalization Database Design.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module C Designing Databases and Entity-Relationship.
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Oracle Data Definition Language (DDL) Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Fundamentals of Relational Database Operations
G045 Lecture 09 ERD Diagrams (Entity Relationship Diagrams) Mr C Johnston ICT Teacher
Assignements. CSC343: Intro. to Databases2 Exercise 1 Superkeys: Candidate keys: Primary key:
© Relational Databases. © Entities Data is stored in tables. Each table is concerned with one entity An entity is a.
Slide content original, slide layout from Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
Forms and Subforms 5.02 Understand database queries, forms, and reports used in business.
Normalization Exercise. First Normal Form Second Normal Form.
Btec National - Advanced Databases 1 Advanced Databases Entity Relationship Diagrams.
EXAMPLE 5 Solve a multi-step problem Write an equation that represents the store’s monthly revenue. Solve the revenue equation for the variable representing.
SYS466: Analysis and Design Using OO Models Lecture 8 Domain Classes – More on Relationships.
Database Design – Lecture 6 Moving to a Logical Model.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
IS 312: Information Systems for Business Discussion Chapter 3.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
Sample Table Standard Notation Entity name in uppercase
Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams.
EXAMPLE 5 Solve a multi-step problem Write an equation that represents the store’s monthly revenue. Solve the revenue equation for the variable representing.
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
Normalisation Unit 6: Databases. Just to recap  What is an Entity  What is an Attribute?
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
Data Flow Diagram Zero Level.
DATA MODELING AND DATABASE DESIGN
©2005 The McGraw-Hill Companies, All rights reserved McGraw-Hill/Irwin
Assignements.
Design Skills Example.
Entity Relationship Diagram
Databases Chapter 9 Asfia Rahman.
Attributes and Domains
Database Applications
Chapter 11 Database Design
Entity Relationship Diagrams - 1
Entity Relationship Diagrams - 1
Relational Model and ER Model: in a Nutshell
Database Fundamentals
Entity relationship diagrams
MIS2502: Data Analytics Relational Data Modeling
Technical Module A Data Modeling Definitions
5.02 Understand database queries, forms, and reports used in business.
בסיסי נתונים - מצגת ההרצאה - 1.
Functional Dependencies
Oracle Data Definition Language (DDL)
Chapter 5 Advanced Data Modeling
ICT Database Lesson 2 Designing a Database.
Entity Relation Model Tingting Zhang.
MIS2502: Data Analytics Relational Data Modeling 3
Design and Create Objects to Store Data Chapter 2
Appendix A Data Modeling MANAGEMENT INFORMATION SYSTEMS 8/E
DATA MODELING AND DATABASE DESIGN
Planning a Database © EIT, Author Gay Robertson, 2019.
Presentation transcript:

Data Base Design Steps 1.Define Entity Classes (Relations/Tables) and Keys. 2.Define Relationships between Entity Classes. Normalization Steps Eliminate all M:M relationships Assure all fields are dependent only on the Primary Key Remove all calculated fields 3.Define Fields in the Relation. 4.Using the Data Definition Language, create the data base.

Video Rental Example – Step 1 Tracking the rental of videos in a store Step 1. Define the Entity Classes + Primary Key Customer  ( ID, Name, Address, Phone #, # of Videos Rented) Videos  ( ID, Type, Days Rented, Rental Price, Distributor, Phone #)

Video Rental Example – Step 2 Step 2 - Define Relationships between Entity Classes  Entity Relationship Diagrams (ERD) Customer Video Required Optional Many One

Video Rental Example – Step 2 a. Normalization  a. Eliminate all M:M relationships Customer Video RentalVideo Video Rental Customer ID Video ID Date Rented Date Returned Composite Primary Key

Video Rental Example – Step 2 b. Normalization  b. Assure all fields are dependent on the Primary Key Customer  ( ID, Name, Address, Phone #, # of Videos Rented) Videos  ( ID, Type, Days Rented, Rental Price, Distributor, Phone # ) Distributor  ( ID, Distributor Name, Phone #) Customer Video Rental Video Distributor

Video Rental Example – Step 2 c. Normalization  c. Remove all calculated fields Customer  ( ID, Name, Address, Phone #, # of Videos Rented) Customer Video Rental Video Distributor Field can be calculated

Video Rental Example – Step 3 Step 3 - Define Fields in the Relation  Numeric- Required or Optional  Alphanumeric- Default Value  Currency- Pull Down List  Length- Indexed

Video Rental Example – Step 4 Step 4 - Using the Data Definition Language, create the data base.