N. J. Taylor Database Management Systems (DBMS) 1.

Slides:



Advertisements
Similar presentations
Relationships Relational Database. Identifying Entities… In the previous tutorial you learnt about identifying entities in a flat file database. Also.
Advertisements

The Relational Model Chapter Two DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Monash University Week 7 Data Modelling Relational Database Theory IMS1907 Database Systems.
The Relational Model Chapter Two. 2 Chapter Objectives Learn the conceptual foundation of the relational model Learn the conceptual foundation of the.
Client/Server Databases and the Oracle 10g Relational Database
The Database Approach u Emphasizes the integration of data across the organization.
CSCI 260 Database Applications Chapter 1 – Getting Started.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
CSCI 150 Database Applications Chapter 1 – Getting Started.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
The Relational Model Chapter Two DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Getting Started Chapter One DATABASE CONCEPTS, 7th Edition
Database – Part 2a Dr. V.T. Raja Oregon State University.
Database Relationships Objective 5.01 Understand database tables used in business.
Databases & Data Warehouses Chapter 3 Database Processing.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Chapter 5 Database Processing.
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Concepts of Relational Databases. Fundamental Concepts Relational data model – A data model representing data in the form of tables Relations – A 2-dimensional.
IST 210: ORGANIZATION OF DATA Chapter 1. Getting Started IST210 1.
The Relational Model Chapter Two DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
The Relational Model Chapter Two DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
Dimu' Rumpak © 2009 by Prentice Hall 1 Getting Started Didimus Rumpak, M.Si. Database Concepts Chapter 1 1.
1 Database Concepts 2 Definition of a Database An organized Collection Of related records.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
Getting Started Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Database Systems, 9th Edition 1.  In this chapter, students will learn: That the relational database model offers a logical view of data About the relational.
Relational Theory and Design
Zhangxi Lin Texas Tech University ISQS 6347, Data & Text Mining 1 ISQS 6339 Data Management and Business Intelligence Database Review.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Information Systems Today: Managing in the Digital World TB3-1 3 Technology Briefing Database Management “Modern organizations are said to be drowning.
Planning & Creating a Database By Ms. Naira Microsoft Access.
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
Assignment 1 Uploaded to course website Due next Tuesday, Sep 1, at 11:59pm.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
The Relational Model Chapter Two DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
NORMALIZATION. What is Normalization  The process of effectively organizing data in a database  Two goals  To eliminate redundant data  Ensure data.
Logical Database Design and the Relational Model.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
Chapter 3 The Relational Database Model. Database Systems, 10th Edition 2 * Relational model * View data logically rather than physically * Table * Structural.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
Chapter 4, Part A: Logical Database Design and the Relational Model
Lecture 4: Logical Database Design and the Relational Model 1.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Chapter 1. Getting Started IST 210: Organization of Data IST2101.
New Perspectives on Microsoft Access 2016
Chapter 4 Logical Database Design and the Relational Model
Introduction to Databases by Dr. Soper extended with more examples
The Relational Model and Database Normalization
The Relational Model Chapter Two DATABASE CONCEPTS, 3rd Edition
and Defining Table Relationships
Database Management Systems (DBMS)
CSCI-100 Introduction to Computing
Entity Relationships and Normalization
Database Fundamentals
Database solutions Chosen aspects of the relational model Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology.
logical design for relational database
Getting Started Chapter One DATABASE CONCEPTS, 5th Edition
Getting Started Chapter One DATABASE CONCEPTS, 4th Edition
Presentation transcript:

N. J. Taylor Database Management Systems (DBMS) 1

Learning Objectives  Understand how related tables avoid the problems of lists and spreadsheets  Learn the components of database system  Learn the purpose of the database management system (DBMS)

Problems with Lists: Redundancy In a list, each row is intended to stand on its own. As a result, the same information may be entered several times (i.e., redundancy)

Problems with Lists: Multiple Themes In a list, each row may contain information on more than one “theme”. As a result, needed information may appear in the lists only if information on other themes is also present Inter. Bicycle Sales information would not be available without SO #1013 This table includes information on the Sales Order, Items, and Customer

List Modification Issues Redundancy and multiple themes create modification problems Deletion problems If we delete SO #1013 we lose our customer IBS Update problems If customer “Bikes Et Cetera” changes its name we have to make sure we change it in every single row. Insertion problems If we want to add a new customer, we must either wait until they place an order or (worse) make up a bogus sales order

List Modification Issues DELETE No SO #1013, no IBS DELETE No SO #1013, no IBS INSERT Blank fields may cause problems later INSERT Blank fields may cause problems later UPDATE Need to change Et Cetera to etc. UPDATE Need to change Et Cetera to etc.

Relational Databases A relational database stores information in tables. Each informational theme is stored in its own table In essence, a relational database will break-up a list into several parts. One part for each theme in the list This is similar to a Web page –Rather than paste the information from another source into our page, it can be linked instead. –The updates are done on the linked page. We just need to make sure that our link to it is valid

DBMS Benefits Though a relational database is more complicated than a list, it protects us from data anomalies (insert, update, and delete) Furthermore, a relational database provides a solid foundation for user forms and reports

Components of a Database System

“Key” terms An entity is something of importance to a user that needs to be represented in a database An entity represents one theme or topic and is represented by a table. The table dimensions, like a matrix, consist of rows (tuples) and columns (attributes) Nolan J. Taylor - A337

A Key A (primary) key is one (or more) columns of a relation that is (are) used to identify a row A composite key is a key that contains two or more attributes –For a key to be unique, it is sometimes necessary to use a composite key –Can also generate a set of unique values to serve as the key (for example University ID numbers)

A Foreign Key A table may be related to other tables (i.e., a relationship) To create relationships, you may need to create a foreign key A foreign key is a primary key from one table placed into another table Referential integrity - every value of a foreign key must match a value of an existing primary key Nolan J. Taylor - A337

Foreign Key Example Project Proj_Num Proj_Name MgrID Manager MgrID MgrName Foreign Key Primary Key Relationship

Functional Dependency A relationship between attributes in which one or more attributes determines the value of another attribute(s) in the same table –The Proj_Num “determines” the Proj_Name