What's a Database A Database Primer Let’s discuss databases n Why they are hard n Why we need them.

Slides:



Advertisements
Similar presentations
Fundamentals, Design, and Implementation, 9/e Appendix A Data Structures for Database Processing.
Advertisements

The Relational Database Model
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 2 Relational Theory DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH.
Normalisation Ensuring data integrity in database design 1.
File Systems and Databases
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
The Relational Database Model:
3-1 Chapter 3 Data and Knowledge Management
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Normalization A337. A337 - Reed Smith2 Structure What is a database? ◦ Tables of information  Rows are referred to as records  Columns are referred.
Terms - data,information, file record, table, row, column, transaction, concurrency Concepts - data integrity, data redundancy, Type of databases – single-user,
Academic Year 2014 Spring.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Cambridge TEC - Level 3 Certificate/Diploma IT. ICT Dept ScenarioLO1LO2LO3.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
CTFS Workshop Shameema Esufali Suzanne Lao Data coordinators and technical resources for the network
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 4 This material was developed by Oregon Health & Science.
Module Title? DBMS Normalization. Module Title? DBMS Normalization  Normalization is the process of removing redundant data from tables in order to improve.
RDBMS Concepts/ Session 3 / 1 of 22 Objectives  In this lesson, you will learn to:  Describe data redundancy  Describe the first, second, and third.
Concepts of Database Management, Fifth Edition
Module III: The Normal Forms. Edgar F. Codd first proposed the process of normalization and what came to be known as the 1st normal form. The database.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
Database Normalization Lynne Weldon July 17, 2000.
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
GUS: 0262 Fundamentals of GIS Lecture Presentation 3: Relational Data Model Jeremy Mennis Department of Geography and Urban Studies Temple University.
CORE 2: Information systems and Databases NORMALISING DATABASES.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
IMS 4212: Normalization 1 Dr. Lawrence West, Management Dept., University of Central Florida Normalization—Topics Functional Dependency.
1 5 Normalization. 2 5 Database Design Give some body of data to be represented in a database, how do we decide on a suitable logical structure for that.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Relational Theory and Design
Component 4/Unit 6d Topic IV: Design a simple relational database using data modeling and normalization Description and Information Gathering Data Model.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Lection №4 Development of the Relational Databases.
CTFS Workshop Shameema Esufali Asian data coordinator and technical resource for the network
Flat Files Relational Databases
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.
Brian Thoms.  Databases normalization The systematic way of ensuring that a database structure is suitable for general-purpose querying and free of certain.
Logical Database Design and the Relational Model.
IST Database Normalization Todd Bacastow IST 210.
1 CS 430 Database Theory Winter 2005 Lecture 7: Designing a Database Logical Level.
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.
IMS 4212: Normalization 1 Dr. Lawrence West, Management Dept., University of Central Florida Normalization—Topics Functional Dependency.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Logical Database Design and Relational Data Model Muhammad Nasir
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
MS Access. Most A2 projects use MS Access Has sufficient depth to support a significant project. Relational Databases. Fairly easy to develop a good user.
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.
Normalisation FORM RULES 1NF 2NF 3NF. What is normalisation of data? The process of Normalisation organises your database to: Reduce or minimise redundant.
Understanding Data Storage
Revised: 2 April 2004 Fred Swartz
CIS 207 The Relational Database Model
Database Management  .
CTFS Asia Region Workshop 2014
Normalization Referential Integrity
Normalization A337.
Relational Database Model
Presentation transcript:

What's a Database A Database Primer

Let’s discuss databases n Why they are hard n Why we need them

Advantages of Database Processing n More information from the same amount of data n Share Data n Balance Conflicting Requirements n Control Redundancy n Facilitate Consistency n Improve Integrity n Expanding Security n Increasing Productivity n Provide Data Independence

More information from the same amount of data n Data + Processing = Information

Share Data n Islands of data are difficult to share n Conflicts with file structures, naming conventions

Balance Conflicting Requirements n Different parts of the business have different uses for the data

Control Redundancy n Single authoritative source

Facilitate Consistency n One source – no conflicting data

Improve Integrity n Refer to single authoritative source n Ensure that single source is correct

Expanding Security n Put all your eggs in one basket n Watch the basket

Increasing Productivity n Only one place to store n Only one place to look n Prepare data once

Data Independence n Changes in the physical structure do not affect the logical structure = scalability

Topics n Manual database example

Manual database example

Structure n Fields, Records, Files n Columns, Rows, Tables n Attribute, Tuple, Relations n Rules: Types of data you can enter

More Complex Model n What if….

A Database is… n Tables n Relationships n Queries n Forms n Reports n Programs

A Student Record

A Few Students

Table View

A Few Students Kelly moves

Redundant Data leads to Inconsistent Data Bud moved too but now the addresses don’t match! His record still has the old address.

A Solution?

Move the data that is common to several records to a new table

A Solution!

A Solution

Relationships Primary Keys Foreign Key

Even More Relationships

Lots of Tables

Normalize? 1 st Normal Form At each row-column intersection, there must be one, and only one, value. F For example, a database would violate the rule for the first normal form if it stores, in a single row- column intersection, all of the scores for a bowler

2 nd Normal Form n Every non-key column must depend upon the entire primary key. n No non-key column is dependent on only a portion of the primary key u If the primary key is composite-made up of more than one component - no non-key column can be a fact about a subset of the primary key. u e.g. compound key firstname+lastname+province code would violate this rule, if another column was functionally dependent on the province code (John+Smith+BC) if “British Columbia” is functionally dependent on the code BC Only an issue if you have compound primary keys e.g. name + product code

3 rd Normal Form n No non-key column can depend on another non-key field u Each column must be a fact about the entity identified by the primary key u All determinants are candidate keys u e.g. in a table about people that contains a column with province codes, and another column with the full name of the province, the province code is a determinant of the full name, but is not a candidate key for the table of people Def n : Determinant A column that determines another column is a determinant

4 th Normal Form n There must not be any independent one-to-many relationships between primary key columns and non-key columns i.e. There are no multivalued dependencies IDAnswer1Answer2Answer3 223ABC 224BCA

5th Normal Form n Tables are broken into the smallest possible pieces in order to eliminate all redundancy within a table. n In extreme cases, tables in fifth normal form may consist of a primary key and a single non-key column. n High integrity n Slow performance n Redundancy due to extensive use of foreign keys

Summary – Normal Forms Normal Form Meaning/ConditionsNotes FirstNo repeating groups exist Second1NF + no nonkey column is dependent on a portion of the primary key If primary key is a single column then automatically 2NF Third2NF + the only determinants are candidate keys Boyce-Codd Normal Form Fourth3NF + no multivalued dependencies

A Historical Perspective Physical collections Flat Files Lists Indexes and pointers

Other Perspectives Hierarchical Structures Folders and Files Inverted Tree Organization Charts Single parent – many child relationships Network Multi – parent – many child relationships

What do you normalize? n Office u Supplies u Inventory n Office u Kitchen u Bathroom

Relational n Fields, Records, Files n Columns, Rows, Tables n Attribute, Tuple, Relations n Structure and Relationships