1 The Information School of the University of Washington Dec 1fit100-25-advdatabases © 2006 University of Washington Advanced Database Concepts INFO/CSE.

Slides:



Advertisements
Similar presentations
Data Modeling. What are you keeping track of? You begin to develop a database by deciding what you are going to keep track of. Each thing that you are.
Advertisements

CHAPTER OBJECTIVE: NORMALIZATION THE SNOWFLAKE SCHEMA.
Database Basics Alan B. Marr, M.D., F.A.C.S. Associate Professor of Clinical Surgery.
Exploring Microsoft Access 2003 Chapter 6 Many-to-Many Relationships: A More Complex System.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
1 The Information School of the University of Washington Nov 27fit databases © 2006 University of Washington Database Intro INFO/CSE 100, Fall 2006.
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.
1 The Information School of the University of Washington Nov 29fit forms © 2006 University of Washington More Forms INFO/CSE 100, Fall 2006 Fluency.
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Transforming Data Models into Database Designs
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
2.3 Organising Data for Effective Retrieval
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
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.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
Concepts and Terminology Introduction to Database.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
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.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Databases. Not All Tables Are Created Equal Spreadsheets use tables to store data and formulas associated with that data The “meaning” of data is implicit.
Information Systems & Databases 2.2) Organisation methods.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Fanny Widadie, S.P, M.Agr 1 Database Management Systems.
IST 220 Introduction to Databases Course Wrap-up.
Microsoft Access 2013 Design and Implement Powerful Relational Databases Chapter 6.
Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Relational Database. I. Relational Database 1. Introduction 2. Database Models 3. Relational Database 4. Entity-Relationship Models 5. RDB Design Principles.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
CHAPTER 1 – INTRODUCTION TO ACCESS Aliya Farheen March 5, 2014.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Howard Paul. Sequential Access Index Files and Data File Random Access.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
Microsoft Access 2010 Chapter 11 Database Design.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
Hoi Le. Why database? Spreadsheet is not good to: Store very large information Efficiently update data Use in multi-user mode Hoi Le2.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Fundamentals of Information Systems, Sixth Edition
Chapter 4 Relational Databases
INFO/CSE 100, Spring 2005 Fluency in Information Technology
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Databases and Information Management
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Database Design Hacettepe University
Advanced Database Concepts: Reports & Views
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Presentation transcript:

1 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Advanced Database Concepts INFO/CSE 100, Fall 2006 Fluency in Information Technology

2 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Readings and References Reading »Fluency with Information Technology Chapter 16, Case Study in Database Design References »MS Access Help files keyword “form” »MS Access Help files Section “Reports and Report Snapshots”

3 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Views as Tables Recall that the result of a query is a table We have been presenting the table to the user in simple tabular form

4 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington But tables are not pretty … Users need help understanding what they are looking at and what they can do with it … … so we developed Forms for controlling the display of data for the user who is reviewing or updating specific records.

5 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Views as Forms A form is primarily used to enter or display data in a database Last lecture we developed Forms for better display to the user while updating the table.

6 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington But forms are not very compact … Users like to have reports densely packed with information and logically arranged … So you can develop Reports for compact display of multiple records.

7 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Reports A Report is another face for a table (or query) The report lets the designer arrange the data, label it, provide some control over events, etc »the presentation »multiple presentations are possible depending on the specific needs of each user Underlying data comes from a table or a query »the content »single source of data ensures consistency

Books Publishers Authors ISBNTitle Price IDPhone Name IDPhone Name PublisherOf ∞ 1 WrittenBy ∞∞ entity-relationship diagram for Library database

9 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Creating a table in Design view

10 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Entering Table Data

11 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Build another table

12 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Add publisher ID to books PK->FK

13 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Create the link between the tables

14 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Two tables with a relationship

15 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Referential Integrity

16 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Books Publishers PublisherOf ∞ 1 This relationship is 1-to-many: One publisher is responsible for many books. Each book has only one publisher. What is the relationship? The two tables are joined using the publisher ID number. The publisher ID is the primary key for each entry in the publishers table. Therefore, each publisher must have a unique publisher ID. The publisher ID is a foreign key for each entry in the books table and we have requested referential integrity Therefore, the given publisher ID must exist in the publishers table.

Books Publishers Authors ISBNTitle Price IDPhone Name IDPhone Name PublisherOf ∞ 1 WrittenBy ∞∞ Hey presto, we have a database!

18 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Create a query

19 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Select particular rows

20 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington This relationship is many-to-many: One book may have several authors. One author may have written several books. What is the relationship? We need a unique identifier for each book. We already selected the ISBN as the primary key and asked Access to make sure that there are no duplicates We need a unique identifier for each author We will define an author table with a unique ID for each author Books Authors ISBNTitle Price IDPhone Name WrittenBy ∞∞

21 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Link one book with many authors? We DO want: »to link each book to one or more authors We DON'T want »to specify extra fields (author1, author2, author3,…) this is wasteful and limits the max number of authors »to specify each book entry several times, naming a different author in each row this duplicates all the other information about the book

22 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Add a cross-reference table! Refine the design so that it includes another table that is a book-author cross reference »Each entity in the table is a single cross reference Attribute: ISBN Attribute: Author ID »Primary key is combination of both columns Now we can break the many-to-many relationship into two 1-to-many relationships that we already know how to implement

23 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Define new cross-reference entities Books Authors ISBNTitle Price IDPhone Name ∞∞ Book/Author ISBNAuthorID 11

24 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington book-author table

25 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Next Week / Extra Credit You are an IT Consultant to a Seattle Health Clinic! Help them make use of technology to benefit their clinic. »In class Monday: Break into groups to come up with IT solutions for our clinic Wednesday: Present to class your groups solutions »Extra Credit - Design Database Schema, and DB use