Introduction to Data Management and Relational Databases.

Slides:



Advertisements
Similar presentations
Chapter 10 Excel: Data Handling or What do we do with all that data?
Advertisements

Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Introduction to Microsoft Access
Computer Concepts BASICS 4th Edition
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 5 1 Microsoft Office Excel 2003 Tutorial 5 – Working With Excel Lists.
Microsoft Access 2003 Introduction To Microsoft Access 2003.
Querying a Database Microsoft Office Access 2003.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 3 Maintaining a Database Using the Design and Update Features of Access.
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
Lecture Roger Sutton 14: Data Management Facilities 1.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
XP 1 Microsoft Office Excel 2003 Tutorial 3 – Working With Excel Lists.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 3-1 LINKS TO OBJECTIVES Save a Filter as a Query Save a Filter as a Query Parameter Query Inner, Left,
Defining Styles and Automatically Creating Table of Contents and Indexes Word Processing 4.03.
Unit J: Creating a Database Microsoft Office Illustrated Fundamentals.
Coding for Excel Analysis Optional Exercise Map Your Hazards! Module, Unit 2 Map Your Hazards! Combining Natural Hazards with Societal Issues.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2010.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
IAGAP Access Database A Tutorial. Databases There are several databases available from the IAGAP Project. There are several databases available from the.
1 Lesson 22 Getting Started with Access Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
Microsoft Access Lesson 1 Lexington Technology Center February 11, 2003 Bob Herring On the Web at
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Lesson 17 Getting Started with Access Essentials
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Key Applications Module Lesson 21 — Access Essentials
Chapter 17 Creating a Database.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 23 Getting Started with Access Essentials 1 Morrison / Wells / Ruffolo.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2007.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
1/62 Introduction to and Using MS Access Database Management and Analysis Yunho Song.
O FFICE M ANAGEMENT T OOL - II B BA -V I TH. Abdus Salam2 Week-7 Introduction to Query Introduction to Query Querying from Multiple Tables Querying from.
1 Lesson 18 Managing and Reporting Database Information Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
CHAPTER 1 – INTRODUCTION TO ACCESS Aliya Farheen March 5, 2014.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
1 11 Exploring Microsoft Office Access 2007 Chapter 6 Data Protection.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Work with Tables and Database Records Lesson 3. NAVIGATING AMONG RECORDS Access users who prefer using the keyboard to navigate records can press keys.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
Exporting & Formatting Budgets from FlexGen, NextGen & Zortec into Excel.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
Emdeon Office Batch Management Services This document provides detailed information on Batch Import Services and other Batch features.
Microsoft Access 2013 Bobby Wan.
GO! with Microsoft Access 2016
Unit J: Creating a Database
Presentation transcript:

Introduction to Data Management and Relational Databases

Outline of presentation Data Management Data Management Compare database Compare database Versus spreadsheets, word processor docs, … Versus spreadsheets, word processor docs, … Relational Databases Relational Databases Parts & Terms Parts & Terms tables, forms, queries, reports (we’ll skip reports) tables, forms, queries, reports (we’ll skip reports) fields, records, keys fields, records, keys Relationships Relationships Linking Tables Linking Tables

C B A C B A C B A Clear Cut Mature Forest Old Growth

Data Management Issues Organization! Organization! Data Entry (error-prone process) Data Entry (error-prone process) Quality Control – Quality Assurance Quality Control – Quality Assurance Metadata (possible data values, how collected, etc.) Metadata (possible data values, how collected, etc.) Tracking specimens, samples Tracking specimens, samples Data retrieval Data retrieval

Spreadsheet vs. Relational Databases Relational Database Relational Database Data entry Data entry Data storage Data storage Data retrieval Data retrieval Spreadsheet Spreadsheet Manipulating Data (eg. Pivot tables) Manipulating Data (eg. Pivot tables) Summarizing & Presenting Data (eg. graphing) Summarizing & Presenting Data (eg. graphing) (Formatting data for statistics programs) (Formatting data for statistics programs)

?

Embedded Information Spreadsheets = “flat files” Databases = “multi-dimensional”

A look at spreadsheets

It is possible to sort and filter records in the spreadsheet (look under DATA in the menu bar). Filtering temporarily removes all unwanted records from view. This is also possible in a database, with some more sophisticated options available.

It is very easy to copy cells or entire rows of data in spreadsheets, but more difficult in databases (one of the few advantages of spreadsheets over databases). However, if one needs to copy-down a lot of data, then the database is not well “normalized” (discussed later).

It is easy to search for and replace words in spreadsheets. This is also possible in databases, but with more sophisticated search and replace options.

The “auto-fill” option in a spreadsheet completes a word it recognizes from entries immediately above the current one. In databases one can use a “lookup table” (discussed later) for a full list of values (eg. names), which might not yet appear in the data set.

Word processor files are the least capable of filtering, finding & replacing, and assisting data entry compared with spread sheets and databases.

Although with proper formatting a word processor document can look like a spreadsheet or database table, one cannot manipulate the rows and columns in the same way.

Archiving Data As an aside, the best form to archive data in is tab delimited (.txt) or comma separated values (.csv) text files As an aside, the best form to archive data in is tab delimited (.txt) or comma separated values (.csv) text files Although programs and formats come and go, all database, spreadsheet, and word processor programs know how to handle.txt and.csv files Although programs and formats come and go, all database, spreadsheet, and word processor programs know how to handle.txt and.csv files

Comparing databases, spreadsheets, and documents DatabaseSpreadsheetDocument SortYesYesYes FilterYesYesNo ReplaceYesYesYes Fill down No 3 YesNo Auto-complete Yes 1 No Whole row YesYesYes Link tables Yes No 2 No 1 Auto complete is done in very different ways 2 Not linking in a true relational sense, except through a database 3 Properly set up (normalized) data can be back-filled

Tabulations Matrix-style synopsis of data Matrix-style synopsis of data “crosstab query” in MS Access “crosstab query” in MS Access “pivot table” in MS Excel “pivot table” in MS Excel

?

Relational Databases Four major components Four major components Tables – these are where ALL data reside Tables – these are where ALL data reside Queries – select subsets of data (retrieve data) Queries – select subsets of data (retrieve data) Forms – “windows” into data tables (views of data) Forms – “windows” into data tables (views of data) Reports – summaries of data (formatted synopses) Reports – summaries of data (formatted synopses)

Tables All data in relational databases reside in tables. Queries, forms, and reports are just convenient ways of looking at the data in the tables. As we shall soon see, the sizes and types of data that can be entered into a table can be regulated for better efficiency and error-proofing. And two or more tables that have a field in common can be linked to draw information from all related tables.

Some terminology: Each square is a “cell” of data

Columns = “Fields”

Rows = “Records”

To change between datasheet view and design view

Another way to enter design view is to click on the table name once (so that it is highlighted), then click on the design view icon. Or right-click the table name and choose design view.

The DESIGN VIEW of a table is where one dictates the type and range of data that can be entered into each field. This can include formatting (such as capitalization), default values, and valid/non-valid entries.

“Lookup” is used to create a list of possible values that a field can take. This example uses a list of values in the field’s properties settings (in DESIGN VIEW). In DATA VIEW the field will have a drop down list of values (“Combo Box”). The full value will be filled in when the first letter is typed.

In this example the “lookup” is set to the list of species codes in the table “Species”

Miscellaneous New records are always added at the end of the table (many people find this annoying) New records are always added at the end of the table (many people find this annoying) “Esc” once to undo current typing “Esc” once to undo current typing “Esc” twice to undo the whole record “Esc” twice to undo the whole record Changes are saved when you move off the cell Changes are saved when you move off the cell No need to save the data in a database after any changes (formatting changes must be saved) No need to save the data in a database after any changes (formatting changes must be saved)

?

Linking Tables Fields common b/w two or more tables can link Fields common b/w two or more tables can link Keyed fields prevent duplicate entries Keyed fields prevent duplicate entries Keyed fields determine relationships b/w tables Keyed fields determine relationships b/w tables Linked tables can reduce data entry and storage needs (using an idea called data normalization) Linked tables can reduce data entry and storage needs (using an idea called data normalization)

Keys and relationships A keyed field is one that does not allow repeated values. A keyed field is one that does not allow repeated values. For example, if the field “Code Name” is keyed in a table, then the user would not be allowed to enter the same Code Name more than once (an error, “key violation” would appear). In this way, one constructs a list of unique values (eg. Code Names). For example, if the field “Code Name” is keyed in a table, then the user would not be allowed to enter the same Code Name more than once (an error, “key violation” would appear). In this way, one constructs a list of unique values (eg. Code Names).

?

One-to-many relationship Because each Species Code is unique in the “keyed” Species table, and can be repeated many times in the Collections table, a “one- to-many” relationship is created between the two (indicated by the “1” and infinity). Referential integrity means that a Species Code cannot be entered into the Collections table if it is not in the Species table. Cascade Update allows one to change the species code once and propagate that change through Collections table. Cascade Delete deletes that species code in all tables that are connected. Use this feature cautiously. This is the “relationships view” of the database that allows the user to define which tables are linked and how. Keyed fields are in bold.

One-to-one relationship?

Normalization Identical data should not be repeated Identical data should not be repeated Fields with records that are repeated should be pulled out into a separate table and referenced when needed Fields with records that are repeated should be pulled out into a separate table and referenced when needed

?

Forms “Windows into the tables” (which really contain the data). Forms allow the user to customize/arrange fields on the screen for ease of data entry and retrieval. Forms also allow the user to view several linked tables in one display. Forms display all the records in the underlying tables as opposed to subsets (see queries for this). Data can be entered and updated in forms.

Forms can (should) look like field collection sheets

Forms can combine several tables in one view (this one has five)

A form with a subform (ex: Loans Masterform) Here two tables are combined in one display subform

Using Forms: Create data entry forms that look like field sheets Create data entry forms that look like field sheets Viewing multiple related tables in one view Viewing multiple related tables in one view The easiest way to create forms in MS Access is to use the “form wizard” The easiest way to create forms in MS Access is to use the “form wizard” Select first table to be in form Select first table to be in form Select fields to be in form Select fields to be in form Select next table to be in form Select next table to be in form Select fields to be in form … Select fields to be in form … Select style of query to create Select style of query to create Once the form is created, go to Design View to modify the size and position of fields in the display Once the form is created, go to Design View to modify the size and position of fields in the display

?

Queries Queries are used to ask questions of the data. That is, to select subsets of records based on particular search criteria. The real power of relational database queries is that data can be summarized across tables that are linked by common fields.

Queries Used to select subsets of data or combinations of data from linked tables Used to select subsets of data or combinations of data from linked tables Two or more tables may be combined in one query using linked fields Two or more tables may be combined in one query using linked fields Data can be entered and changed (changes will propagate through the underlying tables) Data can be entered and changed (changes will propagate through the underlying tables) Queries can also be used to append one table to another, update records given certain criteria, or make new tables for exporting as spreadsheets or documents Queries can also be used to append one table to another, update records given certain criteria, or make new tables for exporting as spreadsheets or documents

Creating Queries Queries are easily created in Design View Queries are easily created in Design View Click “Create query in design view” Click “Create query in design view” Select tables to be in the query Select tables to be in the query Select the fields to be in the query Select the fields to be in the query Type in any criteria to search for in each field Type in any criteria to search for in each field Set any sorting preferences Set any sorting preferences Press run button (!) Press run button (!)

Review Steps for creating a relational database Steps for creating a relational database

C B A C B A C B A Clear Cut Mature Old Growth Step 1: Nested Data Structure

Step 2: Sketch-out tables Table 1 Table 1 Trap Trap Plot Plot Site Site Date Date Species Species Genus Genus Family Family Order Order Quantity Quantity Collector Collector Table 2 Table 2 Dissolved Oxygen Dissolved Oxygen Dissolved Nitrogen Dissolved Nitrogen pH pH Temperature Temperature Plot Plot Site Site Collector Collector

Step 3: Data Normalization Look for fields with repeated records Look for fields with repeated records Consider pulling these fields out into a separate table that links back to the first table Consider pulling these fields out into a separate table that links back to the first table Set up look up tables or look up values Set up look up tables or look up values Designate Keyed fields Designate Keyed fields These are fields with non-repeated values These are fields with non-repeated values Keys can be sequential numbers, or unique codes Keys can be sequential numbers, or unique codes

Step 4: Establish one-to-many links

Step 5: Set up forms and queries Set up forms for easier data entry Set up forms for easier data entry Set up queries to retrieve specific data sets Set up queries to retrieve specific data sets

?