• Creating Database Tables in Microsoft Access• Entering Data in Database Tables • Extracting Data from Databases: Data Manipulation Languages • Cloud Databases and Data Warehouses... J
Trang 1Prepared by Paula Funkhouser University of Nevada, Reno
Core Concepts of Accounting Information Systems, 13th Edition
Mark G Simkin ● Jacob M Rose ● Carolyn S Norman
Organizing and Manipulating the Data in Databases
Chapter 8
Trang 2• Creating Database Tables in Microsoft Access
• Entering Data in Database Tables
• Extracting Data from Databases: Data Manipulation
Languages
• Cloud Databases and Data Warehouses
Trang 3Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Creating Database
Tables in Microsoft Access
• Database Management Systems
• An Introduction to Microsoft Access
• Creating Database Tables
• Defining a Record Format
• Creating Relationships
Trang 4Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Database Management Systems
Trang 5Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Introduction to Microsoft Access
• A popular relational database
• Used by many businesses and individuals
• Used for small database applications
Trang 6Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Microsoft Access – Initial Menu
and Opening Screen
Trang 7Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Creating Database Tables –
Defining Record Format
• Field Name - Required
– Names assigned to the data fields
• Data Type - Required
– Specified for each data field
• Field properties
– Identifies how to store the data – field properties
• Description - Optional
– Defines record structures
• Identifying a Primary Key
• Saving a Table
Trang 8Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Creating Database Tables –
Record Format
Trang 9Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Creating Relationships
• Purpose
– Link tables together
– Enable users to create multi-table reports
• Steps in Creating Relationships
– Select tables
– Link the tables
Trang 10Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Creating Database Relationships –
Linking Tables
Trang 11Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Creating Relationships –
Multitable Relationships
Trang 14Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Ensuring Valid and Accurate Data Entry
• Data Definition Language (DDL)
• Proper Data Types for Fields
• Input Masks
• Default Values
• Drop-Down Lists
• Referential Integrity
Trang 15Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Tools for Data Validation
Trang 16Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Drop-Down List Example
Trang 17Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Validation Rule Example
Trang 18Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Creating Referential Integrity
Trang 19Copyright © 2015 John Wiley & Sons, Inc All rights reserved
All of the following are examples of DBMSs except:
Trang 20Copyright © 2015 John Wiley & Sons, Inc All rights reserved
An example of a validation rule is:
A An input value must be an integer
B An input value must also have a default value
C An input value must be between 0 and 40
D You cannot delete parent records that have child records associated with them
Study Break #2
Trang 21Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Tips for Creating
Database Tables and Records
• Design first
–Create tables and records last
• Name tables systematically
– Use conventional tbl prefixes
• Use mnemonic names for data fields
• Assign correct data types to data fields
Trang 22Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Tips for Creating
Database Tables and Records
• Ensure data fields that link tables are the same data type
• Limit the size of text data fields to reasonable lengths
• Use input masks
Trang 23Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Extracting Data From Databases:
Data Manipulation Languages
• Schema
– All information in a database
– All relationships of the tables
– Map of entire database
• Subschema
– Subset of the schema
Trang 24Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Creating Select Queries
Trang 25Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Creating Select Queries
• One-Table Select Queries
– Creates a dynaset
– Based on:
• Criteria determining which records to include
• Criteria determining which fields to include from those records
– Single or Multiple Criteria
Trang 26Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Query Example
Trang 27Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Select Query Example
Trang 28Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Multi-Table Select Query Example
Trang 29Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Multi-Table Select Query Example
Trang 30Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Creating Action Queries
Trang 31Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Query Wizard Queries
• Access query Wizard
Find-Duplicates quires
Find-unmatched quires
Trang 32Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Guidelines for Creating Queries
• Spell accurately and be case sensitive
• Specify AND and OR operations correctly
• Tables must be joined properly
• Name queries systematically
• Choose data fields selectively
Trang 33Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Extracting Data From Databases
• Structured Query Language (SQL)
• Example of SQL Instructions
Trang 34Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Extracting Data From Databases
• Sorting, Indexing, and Database Programming
– Sort – rewrites the records on disk
– Indexing – sorts on a key but does NOT rewrite the records on
disk
• Online Analytical Processing (OLAP)
– Complex, multidimensional data analysis
– Pivot tables
Trang 35Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Extracting Data From Databases
• Data Mining
– Utilize a set of data analysis and statistical tools
– Identify relationships, patterns, or trends
Trang 36Copyright © 2015 John Wiley & Sons, Inc All rights reserved
Cloud Databases
• Cloud Databases
– Form of Internet-based Computing
– Software provided through the Internet
– Processing occurs on a Web of computers
– Expands IT capabilities
• Database-As-A-Service (DAAS)
– Outsourcing of databases
• Backup Services
Trang 37– Span longer timeframe than transaction systems
– Optimized data relationships
Trang 38Copyright © 2015 John Wiley & Sons, Inc All rights reserved
All of the following are examples of action queries except:
Trang 39Copyright © 2015 John Wiley & Sons, Inc All rights reserved
SQL is an example of:
A A tool to perform online analytical processing
B A database management system
C A query language
D A multimedia database
Study Break #4