Why Databases.

Slides:



Advertisements
Similar presentations
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Advertisements

Chapter 5 Database Processing.
Chapter 1: The Database Environment
The Relational Model Chapter Two DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 7 th Edition.
The Relational Model Chapter Two DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
CSCI 260 Database Applications Chapter 1 – Getting Started.
Fundamentals, Design, and Implementation, 9/e SI654 Database Application Design Instructor: Dragomir R. Radev Winter 2005.
1-1 David M. Kroenke’s Chapter One: Introduction Database Processing: Fundamentals, Design, and Implementation.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-1 COS 346 Day 1.
Introduction to Database Processing
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-1 David M. Kroenke’s Chapter One: Introduction Part One Database Processing:
CSCI 150 Database Applications Chapter 1 – Getting Started.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
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.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-1 David M. Kroenke’s Database Processing: Fundamentals, Design, and.
David M. Kroenke and David J. Auer Database Processing—12 th Edition Fundamentals, Design, and Implementation Chapter One: Introduction KROENKE AND AUER.
Getting Started Chapter One DATABASE CONCEPTS, 7th Edition
+ Structured Query Language Part 2 KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
+ Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Chapter 5 Database Processing.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
CSC100 Databases Marni Ferner. A Few Well-Known Examples Itunes & Ipods Amazon.com Ebay LL Bean Wal-Mart.
David M. Kroenke’s Chapter One: Introduction Part Two Database Processing: Fundamentals, Design, and Implementation.
Database Technical Session By: Prof. Adarsh Patel.
Chapter 1 In-lab Quiz Next week
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
IST 210: ORGANIZATION OF DATA Chapter 1. Getting Started IST210 1.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
Chapter 5 Database Processing. Neil uses software to query a database, but it has about 25 standard queries that don’t give him all he needs. He imports.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
Dimu' Rumpak © 2009 by Prentice Hall 1 Getting Started Didimus Rumpak, M.Si. Database Concepts Chapter 1 1.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall.
Database Management System (DBMS) an Introduction DeSiaMore 1.
Getting Started Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Fanny Widadie, S.P, M.Agr 1 Database Management Systems.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Introduction to Databases Three File Processing Systems DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-2.
Assignment 1 Uploaded to course website Due next Tuesday, Sep 1, at 11:59pm.
The Relational Model Chapter Two DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
+ Structured Query Language Part 2 KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall.
David M. Kroenke and David J. Auer Database Processing: Fundamentals, Design, and Implementation Chapter One: Introduction.
Copyright © 2004 Pearson Education, Inc. Chapter 1 Introduction and Conceptual Modeling.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
1 Management Information Systems M Agung Ali Fikri, SE. MM.
Chapter 1. Getting Started IST 210: Organization of Data IST2101.
Introduction to Databases by Dr. Soper extended with more examples
The Relational Model and Database Normalization
ISQS 6339, Business Intelligence Database vs. Data Warehouse
David M. Kroenke and David J
Chapter 4 Relational Databases
Database Management System (DBMS)
Database Processing: David M. Kroenke’s Chapter One: Introduction
Basic Concepts in Data Management
Database Processing: David M. Kroenke’s Chapter One: Introduction
Chapter 1: The Database Environment
Getting Started Chapter One DATABASE CONCEPTS, 5th Edition
Chapter 1 Introduction to Database Processing
Getting Started Chapter One DATABASE CONCEPTS, 4th Edition
Presentation transcript:

Why Databases

James River Jewelry Project In teams of 2 Complete A and B

Problems with Lists Redundancy Multiple Themes Which Cause Deletion problems Update problems Insertion problems

Addressing Information Complexities Relational databases are designed to address many of the information complexity issues.

Relational Database A relational database stores information in tables. Each informational topic 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. A Project List would be divided into a CUSTOMER Table, a PROJECT Table, and a PROJECT_MANAGER Table Pull up someone's list from last class activity and talk thru the breaking up.

Relational Database A Project List would be divided into a CUSTOMER Table, a PROJECT Table, and a PROJECT_MANAGER Table.

Putting the Pieces Back Together In our relational database, we broke our list into several tables. Somehow the tables must be joined back together. In a relational database, tables are joined together using the value of the data. If a PROJECT has a CUSTOMER, the Customer_ID is stored as a column in the PROJECT table. The value stored in this column can be used to retrieve specific customer information from the CUSTOMER table.

Isn’t This More Work, Not Less to use a Relational Database? It is more complicated than a list. It minimizes data redundancy, preserves complex relationships among topics, and allows for partial data. Provides a solid foundation for user forms and reports.

Relational Database Example Figure 1-6: The Adviser and Student Tables KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

A Relational Database Solves the Problems of Lists Figure 1-7: Modifying the Adviser and Student Tables KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

The Department, Advisor and Student Tables Figure 1-8: The Department, Adviser, and Student Tables KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

The Art Course Database Tables Figure 1-10: The Art Course Database Tables KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

The Project Equipment Tables Figure 1-12: The Project Equipment Database Tables KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

James River Jewelry Project In the same groups of 2 Complete C and E

Structured Query Language (SQL) Structured Query Language (SQL) is an international standard for creating, processing and querying databases and their tables. Many database applications use SQL to retrieve, format, report, insert, delete, and/or modify data for users. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

SQL Example We can use SQL to combine the data in the three tables in the Art Course Database to recreate the original list structure of the data. We do this by using an SQL SELECT statement. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

SQL Example (Cont’d) SELECT CUSTOMER.CustomerLastName, CUSTOMER.CustomerFirstName, CUSTOMER.Phone, COURSE.CourseDate, ENROLLMENT.AmountPaid, COURSE.Course, COURSE.Fee FROM CUSTOMER, ENROLLMENT, COURSE WHERE CUSTOMER.CustomerNumber = ENROLLMENT.CustomerNumber AND COURSE.CourseNumber = ENROLLMENT.CourseNumber; KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

SQL Example Results Figure 1-13: Results of the SQL Query to Recreate the Art Course List KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Database Systems The four components of a database system are: Users Database Application Database Management System (DBMS) Database KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Components of a Database System Figure 1-15: Components of a Database System KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Users A user of a database system will use a database application to track things; use forms to enter, read, delete and query data; and produce reports. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

The Database A database is a self-describing collection of related records. The database itself contains the definition of its structure. Metadata is data describing the structure of the database data. Tables within a relational database are related to each other. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Example Database Metadata: A Relationship Diagram Figure 1:16 Example Metadata: A Relationship Diagram for the Art Course Tables in Figure 1-10 KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Database Contents Figure 1-17 Database Contents KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Database Management System (DBMS) A database management system (DBMS) serves as an intermediary between database applications and the database. The DBMS manages and controls database activities. The DBMS creates, processes and administers the databases it controls. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Functions of a DBMS Create databases Create tables Create supporting structures Read database data Modify database data (insert, update, and delete) Maintain database structures Enforce rules Control concurrency Provide security Perform backup and recovery KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Referential Integrity Constraints The DBMS will enforce many constraints . Referential integrity constraints ensure that the values of a column in one table are valid based on the values in another table. If a 5 was entered as a CustomerID in the PROJECT table, a Customer having a CustomerID value of 5 must exist in the CUSTOMER table. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Database Applications A database application is a set of one or more computer programs that serves as an intermediary between the user and the DBMS. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Functions of Database Applications Create and process forms Process user queries Create and process reports Execute application logic Control database applications KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Database Applications: Example Data Entry Form Figure 1-20: Example Data Entry Form KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Database Applications: Example Query Figure 1-21: Example Query KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Database Applications: Example Report Figure 1-22: Example Report KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Personal Database Systems Personal database systems typically have one application. have only a few tables. are simple in design. involve only one computer. support one user at a time. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Personal Database Systems Figure 1-23: Personal Database System KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Enterprise-Class Database Systems Enterprise-Class database systems typically: support several users simultaneously, include more than one application, involve multiple computers, are complex in design, have many tables, and have many databases. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Organizational Database Systems Figure 1-26 Enterprise-Class Database System KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Commercial DBMS Products Example of Desktop DBMS Products Microsoft Access Examples of Organizational DBMS Products Microsoft’s SQL Server Oracle’s Oracle Sun Microsystem’s MySQL IBM’s DB2 KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

Housekeeping Please sign in using Angel for attendance at Lectures. “Review Questions” and “Exercises” from the schedule are in your textbook. Your “Homework Assignment 2” is due This Tuesday at 11:59 p.m. in the appropriate drop box in Angel. Include your name.