MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.

Slides:



Advertisements
Similar presentations
Relational Terminology. Normalization A method where data items are grouped together to better accommodate business changes Provides a method for representing.
Advertisements

Normalization of Database Tables
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Chapter 17 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.
Chapter 5 Normalization of Database Tables
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 5 Normalization of Database Tables.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Define Table Relationships—1 of 3 One of the most powerful features of a relational database management system, such as Access, is its ability to define.
Introduction to Databases
Normalization. Introduction Badly structured tables, that contains redundant data, may suffer from Update anomalies : Insertions Deletions Modification.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Section 11 : Normalisation
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
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.
DATABASES Pindaro Demertzoglou – Lally School of Management and Technology.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Database Systems: Design, Implementation, and Management Tenth Edition
Concepts of Database Management, Fifth Edition
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Database Normalization Lynne Weldon July 17, 2000.
CORE 2: Information systems and Databases NORMALISING DATABASES.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 2 Tables, Keys, and Relationships Series Editor Amy Kinser.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Microsoft Access Intro Class 6 Relationships.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Relational Theory and Design
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Lection №4 Development of the Relational Databases.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
IS 320 Notes for April 15, Learning Objectives Understand database concepts. Use normalization to efficiently store data in a database. Use.
NORMALIZATION. What is Normalization  The process of effectively organizing data in a database  Two goals  To eliminate redundant data  Ensure data.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Logical Database Design and the Relational Model.
IST Database Normalization Todd Bacastow IST 210.
MS Access: Working with Related Tables Instructor: Vicki Weidler Assistant: Joaquin Obieta.
NORMALIZATION: ‘1NF’ The general rule: ‘’Any field which can have many, must have its own table’’ By Sam Beaumont.
Intermediate MS Access Instructor: Vicki Weidler Assistant: Adam Cavotta.
Microsoft Access 2010 Chapter 11 Database Design.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Normalization. Overview Earliest  formalized database design technique and at one time was the starting point for logical database design. Today  is.
NormalisationNormalisation Normalization is the technique of organizing data elements into records. Normalization is the technique of organizing data elements.
5 1 Chapter 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Data Resource Management Application Layer TPS A RCHITECTURE Data Layer Sales/MarketingHR Finance/Accounting Operations Spreadsheet Data MS Access Accounts.
SQL Basics Review Reviewing what we’ve learned so far…….
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
1 CS490 Database Management Systems. 2 CS490 Database Normalization.
NORMALISATION OF DATABASES. WHAT IS NORMALISATION? Normalisation is used because Databases need to avoid have redundant data, which makes it inefficient.
Understanding Data Storage
A brief summary of database normalization
CIS 155 Table Relationship
Chapter 4 Relational Databases
Intermediate MS Access
Database Normalization
Normalization Referential Integrity
Chapter 4.1 V3.0 Napier University Dr Gordon Russell
MS Access: Working with Fields & Records
Normalisation 1 Unit 3.1 Dr Gordon Russell, Napier University
Presentation transcript:

MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta

Overview Normalize tables to reduce data redundancy Understand the requirements for first, second, and third normal forms Set one-to-one, one-to-many, and many-to-many relationships between tables Implement referential integrity between related tables Use cascading deletes and updates to prevent orphan records

Normalization The process of restructuring data files to: reduce data to its simplest structure minimize redundancy achieve the most efficient and functional yet flexible way to store data

First Normal Form (1NF) Eliminates duplicate data… a table should not contain similar information in several fields; eliminate duplicative columns from the same table or move repeating fields to a related table a table should not contain fields that can be further broken down into smaller meaningful parts create separate tables for each group or related data and identify each row with a unique column (the primary key); each table should describe a single entity (object) class Definition 1NF

Second Normal Form (2NF) Requires all data in the table apply directly to the subject of the table indicated by the primary key field… if the table has a single-field primary key and meets the requirements for 1NF, then it also meets the requirements for 2NF however, if the table has a composite (multiple-field) primary key, then all the fields in the table must be related to and/or dependent on ALL the fields of the composite primary key to convert a table to 2NF, find all the fields that are related to only part of the composite (multiple-field) primary key, group these fields into another table, then assign a primary key to the new table another way of looking at it is to remove ALL subsets of duplicate/redundant data that apply to multiple rows of a table and place them in new tables, then create relationships between these new tables and the original tables by using foreign keysDefinitionDefinition 2NF

Third Normal Form (3NF) Eliminates fields that can be derived from other fields… if a table contains fields that do not relate to and are not fully dependent on the primary key and completely describe the object that table represents, then it is not in 3NF to convert a table to 3NF, delete all the fields that do not relate to the primary key Definition3NF

Fourth Normal Form (4NF) Requires that tables not contain fields for two or more independent, multi-varied facts… this rule requires splitting tables that consist of lists of independent attributes i.e. in a relation table, job skills and language fluency are independent facts about an employee; therefore, the 3-field relation table must be split into 2 two- field relation tables

Fifth Normal Form (5NF) Requires the capability to reconstruct the source data from the tables that have met 1NF, 2NF, 3NF and 4NF… you should be able to regenerate from the database a spreadsheet that contains all the data in the original version this is an “acid test” for normalization and requires considerable skill in designing queries to join related tables to produce a readable output to compare wit the original data

Relating Tables Relationshipsused to extract data from several tables at the same time Primary keyunique identifier for each record in a table Foreign key the primary key in the related table

Types of Relationships One-to-One Relationship When one complete record in the primary table is related to just one record in the related table and vice versa; both tables are equally dependent on each other One-to-Many Relationship When one record in the primary table is related to several records in the related table; however, a record in the related table has only one related record in the primary table Many-to-Many Relationship When several records in one table are related to several records in another table. A many-to-many relationship cannot be created directly in MS Access. To relate such tables, you must first create a junction table that contains the primary keys of both tables

Referential Integrity Ensures that changes made to one table will be reflected in the related table Orphan Records When a record is deleted in the primary table without deleting the related records in the other table

Referential Integrity Cont. Cascading Deletes When you delete a record from the primary table, cascading deletes automatically deletes all related records from other related tables; this ensures that there are no orphan records Cascading Updates When you change a primary key in a table, the change is updated in all of the related tables

Summary Normalize tables to reduce data redundancy Understand the requirements for first, second, and third normal forms Set one-to-one, one-to-many, and many-to-many relationships between tables Implement referential integrity between related tables Use cascading deletes and updates to prevent orphan records

Resources Questions & Answers Evaluations Thank You!!! Conclusion