Database Design. Database Design Process Data Model Requirements Application 1 Database Requirements Application 2 Requirements Application 4 Requirements.

Slides:



Advertisements
Similar presentations
ER Model For a college DB
Advertisements

Data Design The futureERD - CardinalityCODINGRelationshipsDefinition.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
FIS 431/631 Financial Information Systems: Analysis and Design REA Modeling Joe Callaghan Oakland University Department of Accounting & Finance.
Entity Relationship Diagrams
Entity-Relationship Model and Diagrams (continued)
The Relational Database Model:
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.
Entity-Relationship Modelling Introduced by Chen in 1976 The ER Model is used to construct the conceptual data model – independent of DBMS Most widely.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
MIS2502: Data Analytics Relational Data Modeling
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Introduction to Databases
Database Relationships Objective 5.01 Understand database tables used in business.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
Module Title? DBMS E-R Model to Relational Model.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Concepts and Terminology Introduction to Database.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
CS 3630 Database Design and Implementation. 2 Mathematical Relation A mathematical relation is a subset of a Cartesian Product. A1  A2  A3  …  An.
IMS 6217: Relationships 1 Dr. Lawrence West, MIS Dept., University of Central Florida Database Design--Topics DB Design Steps Identify.
Database Design. The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number.
SQL Structured Query Language Programming Course.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Btec National - Advanced Databases 1 Advanced Databases Entity Relationship Diagrams.
COMP231 Tutorial 1 ER Model and ER to Relational Schema.
Database Design. The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number.
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
Relational Theory and Design
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Lesson 2: Designing a Database and Creating Tables.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
MIS2502: Data Analytics Relational Data Modeling
INTRODUCTION TO DATA MODELING CS 260 Database Systems.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams.
Database Design Slide 1 Database Design Lecture 7 part 2 Mapping ERD to Tables.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
MIS2502: Data Analytics Relational Data Modeling David Schuff
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
Howard Paul. Sequential Access Index Files and Data File Random Access.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 2.
Concepts of Database Management Seventh Edition Chapter 4 Keys and Relationship.
1 Microsoft Access 2002 Tutorial 2 – Creating And Maintaining A Database.
Data Modeling and Entity-Relationship Model I
Database Design I IST 210: Organization of Data IST2101.
Database Planning Database Design Normalization.
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Database Design.
Revised: 2 April 2004 Fred Swartz
Chapter 5 STUDENT-COURSE
Databases and Information Management
Entity-Relationship Model and Diagrams (continued)
Databases and Information Management
Presentation transcript:

Database Design

Database Design Process Data Model Requirements Application 1 Database Requirements Application 2 Requirements Application 4 Requirements Application 3

Database Design Process (called “Normalization”) Process of organizing data in a database Process of organizing data in a database –This includes creating tables and establishing relationships between those tables according to rules designed both to protect the data and to make the database more flexible by eliminating redundancy and inconsistent dependency. Eliminates “redundant” data Eliminates “redundant” data –Redundant data wastes disk space and creates maintenance problems. –If data that exists in more than one place must be changed, the data must be changed in exactly the same way in all locations. A customer address change is much easier to implement if that data is stored only in the Customers table and nowhere else in the database.

Entity  Table An Entity is an object in the real world (or even imaginary worlds) about which we want or need to maintain information An Entity is an object in the real world (or even imaginary worlds) about which we want or need to maintain information –Persons (e.g.: customers in a business, employees, authors) –Things (e.g.: purchase orders, meetings, parts, companies)

Example: Course Registration System Draw Entities Instructor Course Student

Attributes  Fields Attributes are the significant properties or characteristics of an entity that help identify it and provide the information needed to interact with it or use it. Attributes are the significant properties or characteristics of an entity that help identify it and provide the information needed to interact with it or use it.

Example: Course Registration System Add Attributes Instructor Name Course Student Office Loc Phone Dept Title Level Name Address Birthdate

“ Special ” Attribute: Primary Key (PK) PK’s are Field(s) that uniquely identify a record PK’s are Field(s) that uniquely identify a record –Example: CourseNo & InstructorID PK can be: PK can be: –A single field (e.g., UserID), or –Multi-field—i.e., “composite” (OrderNo, LineItem)

Example: Course Registration System Add PK’s (underline/separate with a line) Instructor Name Course Student Office Loc Phone Dept Title Level Name Address Birthdate InstructorID CourseNo StudentID

Time for Hands-On Photo © Charles Darwin University 2005

Find Entities, Attributes, and PKs Placeholder

Relationships Relationships are the associations between entities. They can involve one or more entities and belong to particular relationship types Relationships are the associations between entities. They can involve one or more entities and belong to particular relationship types Types of Relationships 1:1 Relationship 1:1 Relationship 1:M Relationship 1:M Relationship M:M Relationship M:M Relationship

Instructor PKInstructorID Course PK CourseNo Teaches Relationships

Instructor PKInstructorID Course PK CourseNo Teaches “Cardinality” 1 M

Student PKStudentID Course PK CourseNo Taken By “Cardinality” M M

Many-to-Many Relationships Not good for database design  Need to “convert” every Many-to-Many relationship into 2 One-to-Many relationships with a third table called “Intersection Table”

Student PKStudentID Course PK CourseNo Taken By M M Resolving Many-to-Many

Student PKStudentID Course PK CourseNo Resolving Many-to-Many Enrollment PK CourseNo PK StudentID

A field in a table that is a PK in another table Foreign Key (FK)

Student PKStudentID Course PK CourseNo Enrollment PK, FK CourseNo PK, FK StudentID Instructor PK InstructorNo FK Example: Course Registration System Foreign Keys (FK)

Time for Hands-On Photo © Charles Darwin University 2005

Draw Relationships