Relational Theory and Design

Slides:



Advertisements
Similar presentations
The Relational Model J.G. Zheng May 15 th Introduction Edgar F. Codd, 1970 One sentence to explain relational database model: Data are organized.
Advertisements

1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 2 Relational Theory DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Accounting System Design
Concepts of Database Management Sixth Edition
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Relational Model Stores data as tables –Each column contains values about the same attribute –Each column has a distinct name –Each row contains values.
Entity-Relationship Model and Diagrams (continued)
Database Design Chapter 3.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
Database – Part 2a Dr. V.T. Raja Oregon State University.
Database Architecture The Relational Database Model.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
The Relational Database Model
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
Database Design Concepts
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Chapter 4 The Relational Model.
Learningcomputer.com SQL Server 2008 – Entity Relationships in a Database.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Relational DB Components
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
Principles of Database Design, Part II AIMS 2710 R. Nakatsu.
Concepts and Terminology Introduction to Database.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Geodatabase Relationships & Relationship Classes GIS 458 Spring 2006 Larry Clamp.
CTFS Workshop Shameema Esufali Suzanne Lao Data coordinators and technical resources for the network
PLUG IT IN 3 Fundamentals of Relational Database Operations.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
Database Design Using Entity-Relationship Models Transformation of Entity-Relationship Models into Relational Database Design Trees, Networks, and Bills.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Relational Database. Database Management System (DBMS)
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition.
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
SQL LANGUAGE and Relational Data Model TUTORIAL Prof: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
Lesson 2: Designing a Database and Creating Tables.
Lection №4 Development of the Relational Databases.
CTFS Workshop Shameema Esufali Asian data coordinator and technical resource for the network
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Entity relationship diagram Name: Quian Crosby Form:6AQ Subject: Information Technology Teacher: Ms. D. Anderson.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
Chapter 3 The Relational Database Model. Database Systems, 10th Edition 2 * Relational model * View data logically rather than physically * Table * Structural.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Microsoft Access 2010 Chapter 11 Database Design.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Data Modeling AND ER MODELS.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
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.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Entity-Relationship Model and Diagrams (continued)
Data Modelling Introduction
Database.
Presentation transcript:

Relational Theory and Design Unit 2

Key Concepts Relational model concepts Entity Relationship Diagram (ERD) symbols Primary keys Foreign keys Integrity rules ERD design process Cardinality Data types

Terms Database (catalog) Row (record, tuple) Column (field, attribute) Cell (field, data item) Primary key

Entity Concepts Entity – type of item modeled in the database Attribute – Values describing the entity Relationship – Link between two tables

One-to-One Relates one row in the parent to zero or one (or exactly one) in the child. Each student has one locker. Each locker is assigned to one student.

One-to-Many Relates one row in the parent to zero or more rows (or one or more rows) in the child. Each teacher teaches multiple classes. Each class has one teacher.

Many-to-Many Multiple relationships exist between parent and child. As associative table is used to track the relationships Each student has multiple teachers. Each teacher has multiple students.

Primary key Unique Minimal Not null Nonupdateable Include Database Design and Development, Exhibit 2-6, page 19

Relationships Database Design and Development, Exhibit 2-9, page 20

Data Integrity Entity integrity – identifies each row as unique Referential integrity – Requires matched foreign key values.

First Normal Form Database Design and Development, Exhibit 2-13, page 22

Database Systems Hierarchical Network Relational Object-oriented

Represent Entities as Tables Entities are the items stored in the database Most represent physical items such as persons and places Start by identifying all possible entities

Determine Relationships Database Systems, Figure 13.12, pg. 405

List Fields Fields, or attributes, describe entities. Most entities will have several attributes.

Identify Keys Each table must have a primary key. Primary key uniquely identfies row. Must be unique, minimal, not null, and nonupdateable. Related child table must have a foreign key

Determine Data Types Determine data type and size for each attribute Primary and foreign keys must match in data type and size

Table Database Design and Development, Exhibit 3-1.1, page 32

Relationship (none) Database Design and Development, Exhibit 3-1.2

Fields Database Design and Development, Exhibit 3-1.3

Keys Database Design and Development, Exhibit 3-1.4

Data Types Database Design and Development, Exhibit 3-1.5

Sample Data Database Design and Development, Exhibit 3-3, page 33

Tables Database Design and Development, Exhibit 3-4.1

Relationships Database Design and Development, Exhibit 3-4.2

Fields Database Design and Development, Exhibit 3-4.3

Keys Database Design and Development, Exhibit 3-4.4

Data Types Database Design and Development, Exhibit 3-4.5

Sample Data Database Design and Development, Exhibit 3-6, Page 35

Tables Database Design and Development, Exhibit 3-7.1, page 36

Relationships Database Design and Development, Exhibit 3-7.2

Fields Database Design and Development, Exhibit 3-7.3, page 37

Keys Database Design and Development, Exhibit 3-7.4

Data Types Database Design and Development, Exhibit 3-7.5

Acme Beer Database Design and Development, Exhibit 3-13, page 48

Acme Beer Tables Database Design and Development, Exhibit 3-14.1, page 49

Acme Beer Relationships Database Design and Development, Exhibit 3-14.2

Acme Beer Fields Database Design and Development, Exhibit 3-14.3

Acme Beer Keys Database Design and Development, Exhibit 3-14.4

Acme Beer Data Types Database Design and Development, Exhibit 3-14.5, page 50

Amazon Product Screens Database Design and Development, Exhibit 3-17, page 54

Amazon Order Screen Database Design and Development, Exhibit 3-18, page 54

Amazon ERD Database Design and Development, Exhibit 3-19.5 (only), page 56

Amazon Data Database Design and Development, Exhibit 3-22