CSIS 115 Database Design and Applications for Business Dr. Meg Fryling “Dr. Meg” Fall #csis115.

Slides:



Advertisements
Similar presentations
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 4-1 David M. Kroenke Database Processing Chapter 2 Structured Query Language.
Advertisements

DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 2-1 David M. Kroenke’s Chapter Two: Introduction to Structured Query.
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:
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-1 COS 346 Day 2.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd 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.
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
David M. Kroenke and David J. Auer Database Processing: Fundamentals, Design and Implementation Chapter Two: Introduction to Structured Query Language.
Why Databases.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Chapter 5 Database Processing.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
Computers Are Your Future Tenth Edition Chapter 12: Databases & Information Systems Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1.
David M. Kroenke’s Chapter One: Introduction Part Two Database Processing: Fundamentals, Design, and Implementation.
INTRODUCTION TO DATABASES Chapter 1. What is a Database?  Forget the glossary! (see pages 11-12)  The purpose of a database is to help people track.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-1 Microsoft Access Microsoft Access is a low-end product intended for.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
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.
DAVID M. KROENKE’S DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall 2-1 David M. Kroenke’s Chapter Two: Introduction to Structured Query.
David M. Kroenke and David J. Auer Database Processing: Fundamentals, Design, and Implementation Chapter One: Introduction.
Database Principles: Fundamentals of Design, Implementation, and Management Chapter 1 The Database Approach.
CSIS 115 Database Design and Applications for Business Dr. Meg Fryling “Dr. Meg” Fall #csis115 © 2012 Meg Fryling.
Microsoft Access 2016 Overview of Microsoft Access Databases
Fundamental of Database Systems
CSIS 115 Database Design and Applications for Business
CSIS 115 Database Design and Applications for Business
“Introduction To Database and SQL”
CSIS 115 Database Design and Applications for Business
CSIS 115 Database Design and Applications for Business
CSIS 115 Database Design and Applications for Business
David M. Kroenke and David J
Fundamentals of Information Systems, Sixth Edition
CSIS 115 Database Design and Applications for Business
Fundamentals & Ethics of Information Systems IS 201
Applied CyberInfrastructure Concepts Fall 2017
CSIS 115 Database Design and Applications for Business
CSIS 115 Database Design and Applications for Business
Fundamentals of Information Systems
Chapter 4 Relational Databases
RELATIONAL DATABASE MODEL
David M. Kroenke and David J
Databases and Information Management
Overview of Microsoft Access Databases Chapter 1
Using SQL to Prepare Data for Analysis
Database Management System (DBMS)
What is a Database and Why Use One?
Database Processing: David M. Kroenke’s Chapter One: Introduction
“Introduction To Database and SQL”
Basic Concepts in Data Management
Database Processing: David M. Kroenke’s Chapter One: Introduction
Database Processing: David M. Kroenke’s Chapter One: Introduction
MANAGING DATA RESOURCES
Database Principles Constructed by Hanh Pham based on slides from: “Database Processing, Fundamentals, Design, and Implementation”, D. Kroenke, D. Auer,
Introduction to Databases
Databases and Information Management
The ultimate in data organization
Getting Started Chapter One DATABASE CONCEPTS, 5th Edition
DATABASE TECHNOLOGIES
Getting Started Chapter One DATABASE CONCEPTS, 4th Edition
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

CSIS 115 Database Design and Applications for Business Dr. Meg Fryling “Dr. Meg” Fall #csis115

Agenda Questions? –Syllabus, Course Schedule, etc. Homework Spreadsheet vs Database revisited (cont.) Chapter 1(Briefly) Chapter 2

Homework Homework P1 –Was due at the beginning of class! –Let’s finish intros. Homework 1 –Due Wednesday (9/12) by beginning of class Project – Part I –Due Monday (9/17) by beginning of class Finish Reading Chapter 1, 2 (Skip and 63-82), & Appendix A (Online) – Start Reading Chapters 5 and 3 ( only) 1-3

Vet Clinic Spreadsheet Why is this not a good solution? 1-4

Database Benefits Databases allow us to organize data in a structured way Eliminate (or at least significantly reduce) data duplication Database user interfaces help Prevent Data Errors 1-5

Components of a Database System with SQL KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-6 Homework 1

Applications, the DBMS, and SQL Applications are the computer programs that users work with. The Database Management System (DBMS) creates, processes, and administers databases. Structured Query Language (SQL) is an internationally recognized standard database language that is used by all commercial DBMSs. KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-7

Structure of the Vet Database Assignments > In-Class Activities > DB vs SS > Vet Clinic DB 1-8

The Tables Where the data is stored 1-9 Students – Refer to the database relationships as I advance through the next 3 slides.

ClientID is a… A.Table B.Field C.Huh? 1-10

ClientID in the CLIENTS table is… A.A primary key B.A surrogate key C.A foreign key D.An alternate key E.What? 1-11

AnimalID in the VISITS table is… A.A primary key B.A surrogate key C.A foreign key D.An alternate key E.No clue 1-12

What type of relationship exists between the CLIENTS and ANIMALS tables? A.One-to-one (1:1) B.One-to-Many (1:N) C.Many-to-Many (M:N) D.None of the above E.Does she really expect us to know this stuff?? 1-13

Data in Tables KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-14 What is the relationship between STUDENT and CLASS?

The Key Characteristic of Databases: Related Tables KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-15

Naming Conventions in this Textbook Table names are written with all capital letters: –STUDENT, CLASS, GRADE –Typically singular not plural Column names are written with an initial capital letter, and compound names are written with a capital letter on each word: –Term, Section, ClassNumber, StudentName KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-16

Databases Create Information Data = recorded facts and figures Information = knowledge derived from data Databases record data, but they do so in such a way that we can produce information from the data. –The data on STUDENTs, CLASSes, and GRADEs could produce information about each student’s GPA. KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-17

Components of a Database System with SQL KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-18

Applications, the DBMS, and SQL Applications are the computer programs that users work with. The Database Management System (DBMS) creates, processes, and administers databases. Structured Query Language (SQL) is an internationally recognized standard database language that is used by all commercial DBMSs. KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-19

Components of a Database System with SQL KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-20

Database Applications KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-21

The Startup Screen: Switchboard Main Menu 1-22

The Registration Screen 1-23

DB – Data Validation Add yourself as new client with the following info: –Zip Code: –Phone Number: –Give each animal (pet) at least one visit date. –For the appointment dates try: 12/35/2004 and 6/10/1905. –For the cost of the visit make one entry of over $

Which of these did you observe while entering data? A.Impossible date was detected B.Too many digits in a phone number was detected C.Unlikely bill amount was detected D.Leading zero kept in zip code E.All of the above 1-25

Which is true about entering a new client, pets, and vet visits? A.Client data had to be duplicated for each pet. B.Pet data had to be duplicated for each visit. C.Data did not need to be duplicated. D.Data was automatically entered for each pet. E.None of the above 1-26

What difference did you observed between entering data into a Spreadsheet vs. a Database? A.Database automatically corrected the data entered. B.Spreadsheet applied no required format checks, but the Database did. C.Database did not prevent possible errors, while the Spreadsheet did. D.There were no real differences between them. E.None of the above 1-27

In order to prevent errors in data entry, what must be true for the database? A.Each data field has to have a proper data. B.The database must hold additional data about each field telling what constitutes correct format for that field. C.The database has to have the ability to undo the entered data D.The database has to have a way of storing correct data. E.I have no idea! 1-28

Database Applications: Queries and Reports “Cats only” Query –Design View –SQL View –How can we make this query better? “Clients with Cats” Report –Where is this data coming from? –Advantages over a spreadsheet? 1-29

Components of a Database System with SQL KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-30

The DBMS KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-31

1-32 Database Contents KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall

Typical Metadata Tables KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-33 Note: These types of tables are hidden in Microsoft Access but you would see them in databases created with other DBMS

1-34 Personal Database Systems: Microsoft Access KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall

1-35 Microsoft Access Low-end product intended for individual users and small workgroups. Hides much of the underlying database technology from the user. A good strategy for beginners, but not for database professionals. NOTE: Microsoft Access 2007 is discussed in detail in Appendix A of your textbook. – KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall

1-36 What Is Microsoft Access? Microsoft Access is a DBMS Creates, processes, and administers Microsoft Access databases. PLUS an application generator –The application generator includes query (QBE), form, and report components. KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall

1-37 Enterprise-Class Database Systems KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall

1-38 Prominent DBMS Products Microsoft Access Microsoft SQL Server 2008 Oracle Corporation Oracle Database 11g MySQL 5.1 IBM DB2 What is OpenOffice.org? KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall

1-39 DBMS Power vs. Ease of Use KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall

What You Need To Learn KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-40

A Brief History of Database Processing KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-41

A Brief History of Database Processing KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-42

The Relational Database Model The dominant database model is the relational database model—all current major DBMS products are based on it. It was created by IBM engineer E. F. Codd in It was based on mathematics called relational algebra. This text examines and explains the relational database model. KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-43

Three Types of Database Design KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-44

Database Design from Existing Data KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-45

Database Design from Existing Data KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-46 Vet Clinic Spreadsheet Vet Clinic Database

Data Import: One or Two Tables? This is an important decision, and based on a set of rules known as normalization (which is covered in Chapter 3). KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-47

Database Design from New Systems Development Entity-Relationship data modeling is covered in Chapter 5, and data model transformations to database designs are covered in Chapter 6. KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-48 ER DiagramDatabase

Chapter 2 Let’s take a look at the “language” we use to “talk” with relational databases Chapter 2 (skip and 63–82) 1-49

Components of a Database System with SQL KROENKE AND AUER - DATABASE PROCESSING, 12th Edition © 2012 Pearson Prentice Hall 1-50

3-51 Structured Query Language Acronym: SQL Pronounced as “S-Q-L” [“Ess-Que-El”] –Also pronounced as “Sequel” Originally developed by IBM as the SEQUEL language in the 1970s SQL-92 is an ANSI national standard adopted in 1992 Newer versions exist, and incorporate XML and some object-oriented concepts.

SQL as a Data Sublanguage Not a full featured programming language –C, C#, Java Data sublanguage for creating and processing database data and metadata Ubiquitous in enterprise-class DBMS products A critical skill! KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall 2-52

SQL DDL and DML SQL statements can be divided into two categories: –Data definition language (DDL) statements Used for creating database structures –tables, relationships (constraints), and other structures. Covered in Chapter 7. –Data manipulation language (DML) statements Used for data retrieval and modification queries. These are the type of queries you used in CSIS114! Covered in this chapter (Chapter 2). KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall 2-53

The SQL SELECT Statement The fundamental framework for SQL query states is the SQL SELECT statement. –SELECT{ColumnName(s)} –FROM{TableName(s)} –WHERE{Conditions} All SQL statements end with a semi-colon (;). KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall 2-54

Let’s Explore the Cape Codd Retail Sales Data Mart Database Cape Codd Outdoor Sports is a fictitious company based on an actual outdoor retail equipment vendor. The Cape Codd marketing department needs an analysis of in-store sales. The entire database is not needed for this, only an extraction of retail sales data. The data is extracted by the IS department from the operational database into a separate, off- line database for use by the marketing department. –Data Mart –Data Warehouse KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall 2-55

In-Class Activity: SQL Basics Assignments > In-Class Activity > SQL Basics Download the “SQL Basics.docx” and “Cape-Codd.accdb” files to your CSIS115 folder on the CS Server (Z Drive). Open SQL Basics.docx –We will use shortly Open the Cape-Codd.accdb database 1-56

Retail Sales Extract Tables KROENKE AND AUER - DATABASE PROCESSING, 11th Edition © 2010 Pearson Prentice Hall 2-57 Note: your DB has more than 3 tables

SQL Basics In-Class Activity Part I Only Open “SQL Basics.docx” 1-58