SlideShare a Scribd company logo
1 of 69
Succeeding in Business with Microsoft Access 2013
Preparing to Automate
Data Management
Succeeding in Business with Microsoft Access 2013
Chapter Introduction
• Gathering data/planning a database design
– Discovery phase includes:
• Gathering all existing data
• Researching missing and incomplete data
• Talking with users about data output needs
– Subsequent steps in process include:
• Putting data into groups called tables
• Identifying unique values for each record in those
tables
• Designing database to produce desired output
2
Succeeding in Business with Microsoft Access 2013
Database Design Process:
The Discovery Phase
3
Succeeding in Business with Microsoft Access 2013 4
Knowledge Check
Succeeding in Business with Microsoft Access 2013
Level 1 Objectives:
Examining Existing and Missing Sources of Data
• Discover and evaluate sources of existing data
• Research sources of missing data
• Assign data to tables and use field types and
sizes to define data
5
Succeeding in Business with Microsoft Access 2013
Discovering and Evaluating
Sources of Existing Data
• Identify information that organization needs
to manage and organize
• Might begin to see patterns that indicate how
to organize data
• Database management system (DBMS)
– Examples:
• Oracle
• Microsoft Access
• MySQL
6
Succeeding in Business with Microsoft Access 2013
Discovering and Evaluating
Sources of Existing Data (cont’d.)
• Data duplication
– Undesirable
• Additional space required in database to store
extra records
• Leads to inconsistent and inaccurate data
• Data redundancy
– Same data repeated for different records
7
Succeeding in Business with Microsoft Access 2013 8
Knowledge Check
Succeeding in Business with Microsoft Access 2013
Identifying Sources
of Missing Data
• Part of discovery phase
• Must ask right questions of right people to get
right answers
9
Succeeding in Business with Microsoft Access 2013
Assimilating the Available Information and
Planning the Database
• First step in database design
– Determine best way to organize data into logical
groups of fields
• Entity
– A person, place, thing, or idea
• Field
– Single characteristic of entity
– Also called column
• Record
– Values in each field in table
– Also called row
10
Succeeding in Business with Microsoft Access 2013
Assimilating the Available Information and
Planning the Database (cont’d.)
• Table
– Collection of fields that describe one entity
– Also called relation
• Database
– Collection of one or more tables
• Relational database
– Contains related tables through fields that contain
identical data
11
Succeeding in Business with Microsoft Access 2013
Evaluating Field Values and Assigning
Appropriate Data Types
• Data type
– Determines how to store data in field
– DBMSs use different names for some data types
• How do you determine which data type to
assign each field?
– Depends on what function you want to derive
from data
– Each data type has different properties
12
Succeeding in Business with Microsoft Access 2013 13
Succeeding in Business with Microsoft Access 2013 14
Succeeding in Business with Microsoft Access 2013
Short Text and Long Text Data Types
• Short Text data type
– Letters and numbers
– Not used in calculations or formulas
– Stores maximum of 255 characters
– Default for all fields created in Access database
• Long Text data type
– Store long passages of text
– Can effectively store over 65,000 characters
15
Succeeding in Business with Microsoft Access 2013
The Number Data Type
• Stores both positive and negative numbers
• Contains up to 15 digits
• Use for values used in calculations
16
Succeeding in Business with Microsoft Access 2013
The Currency Data Type
• Includes two decimal places and displays
values with dollar sign by default
• Use for monetary values
17
Succeeding in Business with Microsoft Access 2013
The Date/Time Data Type
• Display values in format mm/dd/yyyy
– Can also include time in different formats
• Used in calculations if necessary
18
Succeeding in Business with Microsoft Access 2013
The AutoNumber Data Type
• Number automatically generated by Access
• Produces unique values for each record
• Useful to distinguish two records that share
identical information
19
Succeeding in Business with Microsoft Access 2013
The Yes/No Data Type
• Assigned to fields requiring:
– Yes/no
– True/false
– On/off
• Takes up one character of storage space
• Make data entry easy
– Check box
20
Succeeding in Business with Microsoft Access 2013
The OLE Object Data Type
• Used to identify files created in another
program
– Then linked or embedded in database
• Abbreviation for Object Linking and Embedding
21
Succeeding in Business with Microsoft Access 2013
The Hyperlink Data Type
• Assigned to fields that contain hyperlinks to:
– Web pages
– E-mail addresses
– Files that open on:
• Network
• Workstation
22
Succeeding in Business with Microsoft Access 2013
The Attachment Data Type
• Lets you store one or more files for each
record in the database
– Pictures
– Documents
– Charts
– Spreadsheets
23
Succeeding in Business with Microsoft Access 2013
The Calculated Type
• Uses data from fields in the same table to
perform calculations
• When selected, opens Expression Builder so
that you can create the calculation or
expression
24
Succeeding in Business with Microsoft Access 2013
The Lookup Data Type
• Creates fields to look up data in:
– Another table
– Or list of values created for field
• Makes data entry easy
• Ensures that valid data entered into field
25
Succeeding in Business with Microsoft Access 2013
Selecting the Correct Data Type
• Helps store correct data in correct format
while using least amount of space
• Eases data entry and interactivity with data
• Choosing certain data types results in user-
friendly interactive features
– Drop-down menus
– Check boxes
– Hyperlinks
• Correctly manipulate data
26
Succeeding in Business with Microsoft Access 2013
Assigning the Correct Field Size
for Text Fields
• Important to consider field size when
assigning data types
– Minimize space reserved for each record by
assigning smallest data type that will store data
• Be conservative when assigning field sizes
– But not too conservative
27
Succeeding in Business with Microsoft Access 2013
Assigning the Correct Field Size
for Number Fields
28
Table 1.3: Field Sizes for the Number data type
Succeeding in Business with Microsoft Access 2013
Dividing the Existing and
Missing Data into Tables
• Tables
– Single most important component of database
– Most databases contain:
• Multiple tables
• Hundreds or even thousands of records
• Primary key
– One field that creates unique value in each record
– Used to identify each record in table
– May be a combination of fields
29
Succeeding in Business with Microsoft Access 2013
Database Design Process:
Planning the Tables
30
Succeeding in Business with Microsoft Access 2013
Naming Conventions
• Database tables must:
– Have unique names
– Follow established naming conventions
• General rules for naming objects
– Object names cannot exceed 64 characters
– Object names cannot include period, exclamation
point, accent grave, or brackets
– Object names should not include spaces
– Most developers capitalize first letter of each word
when table name includes two words
31
Succeeding in Business with Microsoft Access 2013
Leszynski/Reddick Naming Conventions for
Database Objects
32
Succeeding in Business with Microsoft Access 2013
Level 1 Summary
• Discovery phase
• Identify existing and missing data
• Determine tables
– Determine data types
• Follow naming conventions
33
Succeeding in Business with Microsoft Access 2013
Level 2 Objectives:
Understanding/Creating Table Relationships
• Understand relational database objects and
concepts
• Create table relationships
• Understand referential integrity
34
Succeeding in Business with Microsoft Access 2013
Understanding Relational
Database Objects
• Users can view data in tables by:
– Opening table
– Creating other objects
• Four main objects in database
– Tables
– Queries
– Forms
– Reports
35
Succeeding in Business with Microsoft Access 2013
Tables
• Data in relational database stored in one or
more tables
• View data in table
– Open it and scroll through records
• Most of the time, three other main database
objects used to display data
36
Succeeding in Business with Microsoft Access 2013
Queries
• Query
– Question asked about data stored in database
• Query results
– Similar in look to a table
– Fields displayed in columns
– Records displayed in rows
– This arrangement of data in Access is called a
datasheet
37
Succeeding in Business with Microsoft Access 2013
Queries (cont’d.)
• Select query
– Most commonly used query
– Data selected from table on which query based
• Action query
– Performs action on table
– Select specific records in table and update them
38
Succeeding in Business with Microsoft Access 2013
Queries (cont’d.)
• Crosstab query
– Performs calculations on values in field and
displays results in datasheet
• SQL-specific query
– Must be written in SQL code
39
Succeeding in Business with Microsoft Access 2013
Forms
• Used to view, add, delete, and update records
– Based on table or query
– Interface more attractive than table datasheet
• Customize form’s appearance with
instructions and command buttons
• Navigation or Switchboard form
– Form displayed when database is opened
– Provides controlled method for users to open
objects in database
40
Succeeding in Business with Microsoft Access 2013
Form Based on a Table
41
Succeeding in Business with Microsoft Access 2013
Reports
• Formatted presentation of data from table or
query
• Created as printout or to be viewed on screen
• Data displayed by report usually based on
query
• Dynamic
– Reflect latest data from object
• Cannot be used to modify data
42
Succeeding in Business with Microsoft Access 2013
Accounts Receivable Report
43
Succeeding in Business with Microsoft Access 2013
Other Database Objects
• SharePoint Services
– Sharing data on company intranets and on the
Web
– Create a database on a SharePoint site to be
accessed by authorized individuals
• Macro
– Instructions to automate simple database tasks
• Module
– Performs more sophisticated actions than macro
– Written in Visual Basic for Applications (VBA)
44
Succeeding in Business with Microsoft Access 2013
Understanding Relational
Database Concepts
• Relational database
– Contains multiple tables to store related
information
• Common field
– Field that appears in two or more tables and
contains identical data to relate tables
– Primary key in first table
– Foreign key in second table
45
Succeeding in Business with Microsoft Access 2013
Creating Table Relationships
• Goal in good database design
– Create separate tables for each entity
– Ensure each table has primary key
– Use common field to relate tables
• Relate two (or more) tables
– Query them as though they are one big table
• Join
– Specifies relationship between tables and
properties of relationship
46
Succeeding in Business with Microsoft Access 2013
One-to-Many Relationships
• Abbreviated as 1:∞
• One record in first table matches zero one or
many records in related table
• Primary table
– One “side”
• Related table
– Many “side”
47
Succeeding in Business with Microsoft Access 2013
One-to-Many Relationship Between Customers
and Prescriptions
48
Succeeding in Business with Microsoft Access 2013
One-to-One Relationships
• Abbreviated as 1:1
• Exists when each record in one table matches
exactly one record in related table
49
Succeeding in Business with Microsoft Access 2013
One-to-One Relationship Between Physical and
Billing Addresses
50
Succeeding in Business with Microsoft Access 2013
Many-to-Many Relationships
• Abbreviated as ∞:∞
• Each record in first table matches many
records in second table
• Each record in second table matches many
records in first table
• Junction table
51
Succeeding in Business with Microsoft Access 2013
Many-to-Many Relationship Between
Employees and Classes
52
Succeeding in Business with Microsoft Access 2013
Understanding Referential Integrity
• Null value
– Field does not contain any value
• Entity integrity
– No duplicate records in table; each record is unique
– No primary key field contains null values
• Referential integrity
– If foreign key in one table matches primary key in
second table, values in foreign key must match values
in primary key
53
Succeeding in Business with Microsoft Access 2013
Understanding Referential Integrity (cont’d.)
• When database does not enforce referential
integrity
– Problems occur that lead to inaccurate and
inconsistent data
• Orphaned
– No longer match between primary key in primary
table and foreign keys in related table
54
Succeeding in Business with Microsoft Access 2013
Referential Integrity Errors
55
Succeeding in Business with Microsoft Access 2013
Overriding Referential Integrity
• Might want to override referential integrity
– Intentionally change primary key
– Delete parent record
• Cascade Update Related Fields
– Change primary key value so that DBMS
automatically updates appropriate foreign key
values in related table
• Cascade Delete Related Records
56
Succeeding in Business with Microsoft Access 2013
Level 2 Summary
• Main database objects
– Table
– Query
– Form
– Report
• Relationship types
– One-to-many
– One-to-one
– Many-to-many
57
Succeeding in Business with Microsoft Access 2013
Level 3 Objectives: Identifying and Eliminating
Database Anomalies by Normalizing Data
• Learn the techniques for normalizing data
• Evaluate fields that are used as keys
• Test the database design
58
Succeeding in Business with Microsoft Access 2013
Database Design Process: Normalizing the Data
59
Succeeding in Business with Microsoft Access 2013
Normalizing the Tables
in the Database
• Normalization
– Design process
– Goals:
• Reduce space required to store data by
eliminating duplicate data in database
• Reduce inconsistent data in database by storing
data only once
• Reduce chance of deletion update and
insertion anomalies
60
Succeeding in Business with Microsoft Access 2013
Normalizing the Tables
in the Database (cont’d.)
• Deletion anomaly
– User unintentionally deletes only occurrence of
data in database
• Update anomaly
– User fails to update some records or updates
records erroneously, resulting in redundant data
• Insertion anomaly
– User cannot add data to database unless
preceded by entry of other data
61
Succeeding in Business with Microsoft Access 2013
Normalizing the Tables
in the Database (cont’d.)
• Functional dependency
– Column in table considered functionally
dependent on another column
• If each value in second column associated with
exactly one value in first column
• Partial dependency
– Field dependent on only part of primary key
• Composite primary key
– Primary key uses two or more fields to create
unique records in table
62
Succeeding in Business with Microsoft Access 2013
Normalizing the Tables
in the Database (cont’d.)
• Determinant
– Field or collection of fields whose value
determines value in another field
• Natural key
– Primary key that details obvious and innate trait of
record
• Artificial key
– Field whose sole purpose is to create primary key
63
Succeeding in Business with Microsoft Access 2013
First Normal Form (1NF)
• Repeating group
– Field contains more than one value
• First normal form
– Does not contain any repeating groups
64
Succeeding in Business with Microsoft Access 2013
Second Normal Form (2NF)
• Table must be in 1NF
• Must not contain any partial dependencies on
composite primary key
• Tables in 1NF and contain primary key with
only one field
– Automatically in 2NF
65
Succeeding in Business with Microsoft Access 2013
Third Normal Form (3NF)
• Must be in 2NF and only determinants must
be candidate keys
– Candidate key
• Field(s) that could function as primary key but was not
chosen to do so
• Tables in 3NF should not have transitive
dependencies
– Transitive dependency
• Two nonkey fields both dependent on third field
66
Succeeding in Business with Microsoft Access 2013
Level 3 Summary
• Normal forms
– First (1NF)
– Second (2NF)
– Third (3NF)
67
Succeeding in Business with Microsoft Access 2013
Chapter Summary
• Discovery:
– Identify existing and missing data
– Organize data into tables
– Determine data types for each field
• Tables, queries, forms, and reports
• Table relationships
– Established through common fields
– Types
• 1: ∞; 1:1; ∞ : ∞
68
Succeeding in Business with Microsoft Access 2013
Chapter Summary (cont’d.)
• Normalization
– Referential integrity
– Reduces duplication and inconsistency
– Forms:
• 1NF
• 2NF
• 3NF
69

More Related Content

What's hot

Ch02 Access
Ch02 AccessCh02 Access
Ch02 AccessD
 
Ch01 Access
Ch01 AccessCh01 Access
Ch01 AccessD
 
Ch06 Access
Ch06 AccessCh06 Access
Ch06 AccessD
 
Ch03 Access
Ch03 AccessCh03 Access
Ch03 AccessD
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit Ajarana00
 
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013guvensahin
 
Access 2013 Unit B
Access 2013 Unit BAccess 2013 Unit B
Access 2013 Unit Bjarana00
 
AX 2012: All About Lookups!
AX 2012: All About Lookups!AX 2012: All About Lookups!
AX 2012: All About Lookups!MAnasKhan
 
Budget entries import in Dynamics AX 2012
Budget entries import in Dynamics AX 2012Budget entries import in Dynamics AX 2012
Budget entries import in Dynamics AX 2012Bilal Jawarneh
 
What is bip_v2
What is bip_v2What is bip_v2
What is bip_v2kanaugust
 
Data Warehouse approaches with Dynamics AX
Data Warehouse  approaches with Dynamics AXData Warehouse  approaches with Dynamics AX
Data Warehouse approaches with Dynamics AXAlvin You
 
Dynamics ax 2012 development overview
Dynamics ax 2012 development overviewDynamics ax 2012 development overview
Dynamics ax 2012 development overviewAli Raza Zaidi
 
Optimizing MS Dynamics AX 2012 R3
Optimizing MS Dynamics AX 2012 R3Optimizing MS Dynamics AX 2012 R3
Optimizing MS Dynamics AX 2012 R3Juan Fabian
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPTokmomwalking
 
Srinivas BI Consultant Profile
Srinivas BI Consultant ProfileSrinivas BI Consultant Profile
Srinivas BI Consultant ProfileSrinivas V
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access pptanuj
 
Integration with dynamics ax 2012
Integration with dynamics ax 2012Integration with dynamics ax 2012
Integration with dynamics ax 2012Ali Raza Zaidi
 
AX2012 Technical Track - Entreprise portal, Czesia Langoswka
AX2012 Technical Track -  Entreprise portal, Czesia LangoswkaAX2012 Technical Track -  Entreprise portal, Czesia Langoswka
AX2012 Technical Track - Entreprise portal, Czesia Langoswkadynamicscom
 

What's hot (20)

Ch02 Access
Ch02 AccessCh02 Access
Ch02 Access
 
Ch01 Access
Ch01 AccessCh01 Access
Ch01 Access
 
Ch06 Access
Ch06 AccessCh06 Access
Ch06 Access
 
Ch03 Access
Ch03 AccessCh03 Access
Ch03 Access
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit A
 
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
 
Access 2013 Unit B
Access 2013 Unit BAccess 2013 Unit B
Access 2013 Unit B
 
Ax Presentation
Ax PresentationAx Presentation
Ax Presentation
 
AX 2012: All About Lookups!
AX 2012: All About Lookups!AX 2012: All About Lookups!
AX 2012: All About Lookups!
 
Budget entries import in Dynamics AX 2012
Budget entries import in Dynamics AX 2012Budget entries import in Dynamics AX 2012
Budget entries import in Dynamics AX 2012
 
What is bip_v2
What is bip_v2What is bip_v2
What is bip_v2
 
Data Warehouse approaches with Dynamics AX
Data Warehouse  approaches with Dynamics AXData Warehouse  approaches with Dynamics AX
Data Warehouse approaches with Dynamics AX
 
Dynamics ax 2012 development overview
Dynamics ax 2012 development overviewDynamics ax 2012 development overview
Dynamics ax 2012 development overview
 
Optimizing MS Dynamics AX 2012 R3
Optimizing MS Dynamics AX 2012 R3Optimizing MS Dynamics AX 2012 R3
Optimizing MS Dynamics AX 2012 R3
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
 
Srinivas BI Consultant Profile
Srinivas BI Consultant ProfileSrinivas BI Consultant Profile
Srinivas BI Consultant Profile
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 
Uses of MS Access in Business
Uses of MS Access in BusinessUses of MS Access in Business
Uses of MS Access in Business
 
Integration with dynamics ax 2012
Integration with dynamics ax 2012Integration with dynamics ax 2012
Integration with dynamics ax 2012
 
AX2012 Technical Track - Entreprise portal, Czesia Langoswka
AX2012 Technical Track -  Entreprise portal, Czesia LangoswkaAX2012 Technical Track -  Entreprise portal, Czesia Langoswka
AX2012 Technical Track - Entreprise portal, Czesia Langoswka
 

Viewers also liked

Sound Stock Trading Practices
Sound Stock Trading PracticesSound Stock Trading Practices
Sound Stock Trading PracticesInvestingTips
 
Proffesional Curriculum Vitae
Proffesional Curriculum VitaeProffesional Curriculum Vitae
Proffesional Curriculum VitaeTINASHE CHIMWAZA
 
First year 2nd quarter CSBN - Pictures and MS Paint
First year 2nd quarter CSBN - Pictures and MS PaintFirst year 2nd quarter CSBN - Pictures and MS Paint
First year 2nd quarter CSBN - Pictures and MS PaintAndy de Vera
 
Lesson 07 - Software Fundamentals
Lesson 07 - Software FundamentalsLesson 07 - Software Fundamentals
Lesson 07 - Software FundamentalsAngela Impellizzeri
 
Tuxpaint Downloading Instructions
Tuxpaint Downloading InstructionsTuxpaint Downloading Instructions
Tuxpaint Downloading Instructionsmelarodriguez
 
2차년도 융합전문가 특강 참가(3D 모델링 및 프린팅)
2차년도 융합전문가 특강 참가(3D 모델링 및 프린팅)2차년도 융합전문가 특강 참가(3D 모델링 및 프린팅)
2차년도 융합전문가 특강 참가(3D 모델링 및 프린팅)ictplusud
 
Scratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorScratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorDavid Oromaner
 
Komponen utama komputer
Komponen utama komputerKomponen utama komputer
Komponen utama komputerarah1506
 
Guia do projeto discente revolução dos bichos módulo comunicação e sociedade ...
Guia do projeto discente revolução dos bichos módulo comunicação e sociedade ...Guia do projeto discente revolução dos bichos módulo comunicação e sociedade ...
Guia do projeto discente revolução dos bichos módulo comunicação e sociedade ...pablonaba
 
Kinders' Microsoft Paint
Kinders' Microsoft PaintKinders' Microsoft Paint
Kinders' Microsoft Paintctklibrary
 

Viewers also liked (13)

Sound Stock Trading Practices
Sound Stock Trading PracticesSound Stock Trading Practices
Sound Stock Trading Practices
 
AlanMiroslaw
AlanMiroslawAlanMiroslaw
AlanMiroslaw
 
Proffesional Curriculum Vitae
Proffesional Curriculum VitaeProffesional Curriculum Vitae
Proffesional Curriculum Vitae
 
FinalPaper
FinalPaperFinalPaper
FinalPaper
 
TWC
TWCTWC
TWC
 
First year 2nd quarter CSBN - Pictures and MS Paint
First year 2nd quarter CSBN - Pictures and MS PaintFirst year 2nd quarter CSBN - Pictures and MS Paint
First year 2nd quarter CSBN - Pictures and MS Paint
 
Lesson 07 - Software Fundamentals
Lesson 07 - Software FundamentalsLesson 07 - Software Fundamentals
Lesson 07 - Software Fundamentals
 
Tuxpaint Downloading Instructions
Tuxpaint Downloading InstructionsTuxpaint Downloading Instructions
Tuxpaint Downloading Instructions
 
2차년도 융합전문가 특강 참가(3D 모델링 및 프린팅)
2차년도 융합전문가 특강 참가(3D 모델링 및 프린팅)2차년도 융합전문가 특강 참가(3D 모델링 및 프린팅)
2차년도 융합전문가 특강 참가(3D 모델링 및 프린팅)
 
Scratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorScratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint Editor
 
Komponen utama komputer
Komponen utama komputerKomponen utama komputer
Komponen utama komputer
 
Guia do projeto discente revolução dos bichos módulo comunicação e sociedade ...
Guia do projeto discente revolução dos bichos módulo comunicação e sociedade ...Guia do projeto discente revolução dos bichos módulo comunicação e sociedade ...
Guia do projeto discente revolução dos bichos módulo comunicação e sociedade ...
 
Kinders' Microsoft Paint
Kinders' Microsoft PaintKinders' Microsoft Paint
Kinders' Microsoft Paint
 

Similar to Ch01 CMPT110

chapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdfchapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdfAxmedMaxamuud6
 
Chapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementChapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementAxmedMaxamuudYoonis
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit Ajarana00
 
Operate Database Applicationitss level2.pptx
Operate Database Applicationitss level2.pptxOperate Database Applicationitss level2.pptx
Operate Database Applicationitss level2.pptxAbdirisakIman
 
BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2Kelvin Chan
 
Access essential training framework
Access essential training   frameworkAccess essential training   framework
Access essential training frameworkVijay Perepa
 
Chapter 9 Microsoft Access Database.pptx
Chapter 9 Microsoft Access Database.pptxChapter 9 Microsoft Access Database.pptx
Chapter 9 Microsoft Access Database.pptxAbdullaahiHashiSabri
 
7 - Enterprise IT in Action
7 - Enterprise IT in Action7 - Enterprise IT in Action
7 - Enterprise IT in ActionRaymond Gao
 
chapter05-120827115357-phpapp01.pdf
chapter05-120827115357-phpapp01.pdfchapter05-120827115357-phpapp01.pdf
chapter05-120827115357-phpapp01.pdfAxmedMaxamuud6
 
Business Intelligence and Multidimensional Database
Business Intelligence and Multidimensional DatabaseBusiness Intelligence and Multidimensional Database
Business Intelligence and Multidimensional DatabaseRussel Chowdhury
 
Chapter 5 Data and Process Modeling .pptx
Chapter 5 Data and Process Modeling .pptxChapter 5 Data and Process Modeling .pptx
Chapter 5 Data and Process Modeling .pptxAxmedMaxamuudYoonis
 
Access 2010 Unit B PPT
Access 2010 Unit B PPTAccess 2010 Unit B PPT
Access 2010 Unit B PPTokmomwalking
 
Microsoft excel training for professionals
Microsoft excel training for professionalsMicrosoft excel training for professionals
Microsoft excel training for professionalsMichael Olafusi
 

Similar to Ch01 CMPT110 (20)

chapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdfchapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdf
 
Chapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementChapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project Management
 
MS Access.pptx
MS Access.pptxMS Access.pptx
MS Access.pptx
 
MS ACCESS
MS ACCESSMS ACCESS
MS ACCESS
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit A
 
MS-ACCESS.pptx
MS-ACCESS.pptxMS-ACCESS.pptx
MS-ACCESS.pptx
 
Operate Database Applicationitss level2.pptx
Operate Database Applicationitss level2.pptxOperate Database Applicationitss level2.pptx
Operate Database Applicationitss level2.pptx
 
BUS-Chapter 07.ppt
BUS-Chapter 07.pptBUS-Chapter 07.ppt
BUS-Chapter 07.ppt
 
BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2
 
Access essential training framework
Access essential training   frameworkAccess essential training   framework
Access essential training framework
 
ITE 101 - Week 7
ITE 101 - Week 7ITE 101 - Week 7
ITE 101 - Week 7
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Chapter 9 Microsoft Access Database.pptx
Chapter 9 Microsoft Access Database.pptxChapter 9 Microsoft Access Database.pptx
Chapter 9 Microsoft Access Database.pptx
 
RowanDay4.pptx
RowanDay4.pptxRowanDay4.pptx
RowanDay4.pptx
 
7 - Enterprise IT in Action
7 - Enterprise IT in Action7 - Enterprise IT in Action
7 - Enterprise IT in Action
 
chapter05-120827115357-phpapp01.pdf
chapter05-120827115357-phpapp01.pdfchapter05-120827115357-phpapp01.pdf
chapter05-120827115357-phpapp01.pdf
 
Business Intelligence and Multidimensional Database
Business Intelligence and Multidimensional DatabaseBusiness Intelligence and Multidimensional Database
Business Intelligence and Multidimensional Database
 
Chapter 5 Data and Process Modeling .pptx
Chapter 5 Data and Process Modeling .pptxChapter 5 Data and Process Modeling .pptx
Chapter 5 Data and Process Modeling .pptx
 
Access 2010 Unit B PPT
Access 2010 Unit B PPTAccess 2010 Unit B PPT
Access 2010 Unit B PPT
 
Microsoft excel training for professionals
Microsoft excel training for professionalsMicrosoft excel training for professionals
Microsoft excel training for professionals
 

Recently uploaded

Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girls
Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call GirlsLaxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girls
Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...dajasot375
 
Aiims Call Girls : ☎ 8527673949, Low rate Call Girls
Aiims Call Girls : ☎ 8527673949, Low rate Call GirlsAiims Call Girls : ☎ 8527673949, Low rate Call Girls
Aiims Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | DelhiFULL ENJOY - 9953040155 Call Girls in Karol Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | DelhiMalviyaNagarCallGirl
 
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857delhimodel235
 
FULL ENJOY - 9953040155 Call Girls in Laxmi Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Laxmi Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in Laxmi Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Laxmi Nagar | DelhiMalviyaNagarCallGirl
 
Bare And Wild Creation, Curio Shop, Tucumcari NM
Bare And Wild Creation, Curio Shop, Tucumcari NMBare And Wild Creation, Curio Shop, Tucumcari NM
Bare And Wild Creation, Curio Shop, Tucumcari NMroute66connected
 
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubai
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur DubaiBur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubai
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubaidajasot375
 
Russian⚡ Call Girls In Sector 104 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 104 Noida✨8375860717⚡Escorts ServiceRussian⚡ Call Girls In Sector 104 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 104 Noida✨8375860717⚡Escorts Servicedoor45step
 
Khanpur Call Girls : ☎ 8527673949, Low rate Call Girls
Khanpur Call Girls : ☎ 8527673949, Low rate Call GirlsKhanpur Call Girls : ☎ 8527673949, Low rate Call Girls
Khanpur Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
MinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboardMinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboardjessica288382
 
Jagat Puri Call Girls : ☎ 8527673949, Low rate Call Girls
Jagat Puri Call Girls : ☎ 8527673949, Low rate Call GirlsJagat Puri Call Girls : ☎ 8527673949, Low rate Call Girls
Jagat Puri Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | DelhiMalviyaNagarCallGirl
 
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts ServiceRussian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Servicedoor45step
 
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | DelhiFULL ENJOY - 9953040155 Call Girls in Paschim Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | DelhiMalviyaNagarCallGirl
 
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | Delhi
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | DelhiFULL ENJOY - 9953040155 Call Girls in Dwarka Mor | Delhi
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | DelhiMalviyaNagarCallGirl
 
Pragati Maidan Call Girls : ☎ 8527673949, Low rate Call Girls
Pragati Maidan Call Girls : ☎ 8527673949, Low rate Call GirlsPragati Maidan Call Girls : ☎ 8527673949, Low rate Call Girls
Pragati Maidan Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call GirlsGovindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 

Recently uploaded (20)

Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girls
Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call GirlsLaxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girls
Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girls
 
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...
 
Aiims Call Girls : ☎ 8527673949, Low rate Call Girls
Aiims Call Girls : ☎ 8527673949, Low rate Call GirlsAiims Call Girls : ☎ 8527673949, Low rate Call Girls
Aiims Call Girls : ☎ 8527673949, Low rate Call Girls
 
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | DelhiFULL ENJOY - 9953040155 Call Girls in Karol Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Karol Bagh | Delhi
 
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857
Low Rate Call Girls in Laxmi Nagar Delhi Call 9990771857
 
Call~Girl in Rajendra Nagar New Delhi 8448380779 Full Enjoy Escort Service
Call~Girl in Rajendra Nagar New Delhi 8448380779 Full Enjoy Escort ServiceCall~Girl in Rajendra Nagar New Delhi 8448380779 Full Enjoy Escort Service
Call~Girl in Rajendra Nagar New Delhi 8448380779 Full Enjoy Escort Service
 
FULL ENJOY - 9953040155 Call Girls in Laxmi Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Laxmi Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in Laxmi Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Laxmi Nagar | Delhi
 
Bare And Wild Creation, Curio Shop, Tucumcari NM
Bare And Wild Creation, Curio Shop, Tucumcari NMBare And Wild Creation, Curio Shop, Tucumcari NM
Bare And Wild Creation, Curio Shop, Tucumcari NM
 
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubai
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur DubaiBur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubai
Bur Dubai Call Girls O58993O4O2 Call Girls in Bur Dubai
 
Russian⚡ Call Girls In Sector 104 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 104 Noida✨8375860717⚡Escorts ServiceRussian⚡ Call Girls In Sector 104 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 104 Noida✨8375860717⚡Escorts Service
 
Khanpur Call Girls : ☎ 8527673949, Low rate Call Girls
Khanpur Call Girls : ☎ 8527673949, Low rate Call GirlsKhanpur Call Girls : ☎ 8527673949, Low rate Call Girls
Khanpur Call Girls : ☎ 8527673949, Low rate Call Girls
 
MinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboardMinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboard
 
Jagat Puri Call Girls : ☎ 8527673949, Low rate Call Girls
Jagat Puri Call Girls : ☎ 8527673949, Low rate Call GirlsJagat Puri Call Girls : ☎ 8527673949, Low rate Call Girls
Jagat Puri Call Girls : ☎ 8527673949, Low rate Call Girls
 
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in New Ashok Nagar | Delhi
 
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts ServiceRussian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Service
Russian⚡ Call Girls In Sector 39 Noida✨8375860717⚡Escorts Service
 
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | DelhiFULL ENJOY - 9953040155 Call Girls in Paschim Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | Delhi
 
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
 
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | Delhi
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | DelhiFULL ENJOY - 9953040155 Call Girls in Dwarka Mor | Delhi
FULL ENJOY - 9953040155 Call Girls in Dwarka Mor | Delhi
 
Pragati Maidan Call Girls : ☎ 8527673949, Low rate Call Girls
Pragati Maidan Call Girls : ☎ 8527673949, Low rate Call GirlsPragati Maidan Call Girls : ☎ 8527673949, Low rate Call Girls
Pragati Maidan Call Girls : ☎ 8527673949, Low rate Call Girls
 
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call GirlsGovindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
 

Ch01 CMPT110

  • 1. Succeeding in Business with Microsoft Access 2013 Preparing to Automate Data Management
  • 2. Succeeding in Business with Microsoft Access 2013 Chapter Introduction • Gathering data/planning a database design – Discovery phase includes: • Gathering all existing data • Researching missing and incomplete data • Talking with users about data output needs – Subsequent steps in process include: • Putting data into groups called tables • Identifying unique values for each record in those tables • Designing database to produce desired output 2
  • 3. Succeeding in Business with Microsoft Access 2013 Database Design Process: The Discovery Phase 3
  • 4. Succeeding in Business with Microsoft Access 2013 4 Knowledge Check
  • 5. Succeeding in Business with Microsoft Access 2013 Level 1 Objectives: Examining Existing and Missing Sources of Data • Discover and evaluate sources of existing data • Research sources of missing data • Assign data to tables and use field types and sizes to define data 5
  • 6. Succeeding in Business with Microsoft Access 2013 Discovering and Evaluating Sources of Existing Data • Identify information that organization needs to manage and organize • Might begin to see patterns that indicate how to organize data • Database management system (DBMS) – Examples: • Oracle • Microsoft Access • MySQL 6
  • 7. Succeeding in Business with Microsoft Access 2013 Discovering and Evaluating Sources of Existing Data (cont’d.) • Data duplication – Undesirable • Additional space required in database to store extra records • Leads to inconsistent and inaccurate data • Data redundancy – Same data repeated for different records 7
  • 8. Succeeding in Business with Microsoft Access 2013 8 Knowledge Check
  • 9. Succeeding in Business with Microsoft Access 2013 Identifying Sources of Missing Data • Part of discovery phase • Must ask right questions of right people to get right answers 9
  • 10. Succeeding in Business with Microsoft Access 2013 Assimilating the Available Information and Planning the Database • First step in database design – Determine best way to organize data into logical groups of fields • Entity – A person, place, thing, or idea • Field – Single characteristic of entity – Also called column • Record – Values in each field in table – Also called row 10
  • 11. Succeeding in Business with Microsoft Access 2013 Assimilating the Available Information and Planning the Database (cont’d.) • Table – Collection of fields that describe one entity – Also called relation • Database – Collection of one or more tables • Relational database – Contains related tables through fields that contain identical data 11
  • 12. Succeeding in Business with Microsoft Access 2013 Evaluating Field Values and Assigning Appropriate Data Types • Data type – Determines how to store data in field – DBMSs use different names for some data types • How do you determine which data type to assign each field? – Depends on what function you want to derive from data – Each data type has different properties 12
  • 13. Succeeding in Business with Microsoft Access 2013 13
  • 14. Succeeding in Business with Microsoft Access 2013 14
  • 15. Succeeding in Business with Microsoft Access 2013 Short Text and Long Text Data Types • Short Text data type – Letters and numbers – Not used in calculations or formulas – Stores maximum of 255 characters – Default for all fields created in Access database • Long Text data type – Store long passages of text – Can effectively store over 65,000 characters 15
  • 16. Succeeding in Business with Microsoft Access 2013 The Number Data Type • Stores both positive and negative numbers • Contains up to 15 digits • Use for values used in calculations 16
  • 17. Succeeding in Business with Microsoft Access 2013 The Currency Data Type • Includes two decimal places and displays values with dollar sign by default • Use for monetary values 17
  • 18. Succeeding in Business with Microsoft Access 2013 The Date/Time Data Type • Display values in format mm/dd/yyyy – Can also include time in different formats • Used in calculations if necessary 18
  • 19. Succeeding in Business with Microsoft Access 2013 The AutoNumber Data Type • Number automatically generated by Access • Produces unique values for each record • Useful to distinguish two records that share identical information 19
  • 20. Succeeding in Business with Microsoft Access 2013 The Yes/No Data Type • Assigned to fields requiring: – Yes/no – True/false – On/off • Takes up one character of storage space • Make data entry easy – Check box 20
  • 21. Succeeding in Business with Microsoft Access 2013 The OLE Object Data Type • Used to identify files created in another program – Then linked or embedded in database • Abbreviation for Object Linking and Embedding 21
  • 22. Succeeding in Business with Microsoft Access 2013 The Hyperlink Data Type • Assigned to fields that contain hyperlinks to: – Web pages – E-mail addresses – Files that open on: • Network • Workstation 22
  • 23. Succeeding in Business with Microsoft Access 2013 The Attachment Data Type • Lets you store one or more files for each record in the database – Pictures – Documents – Charts – Spreadsheets 23
  • 24. Succeeding in Business with Microsoft Access 2013 The Calculated Type • Uses data from fields in the same table to perform calculations • When selected, opens Expression Builder so that you can create the calculation or expression 24
  • 25. Succeeding in Business with Microsoft Access 2013 The Lookup Data Type • Creates fields to look up data in: – Another table – Or list of values created for field • Makes data entry easy • Ensures that valid data entered into field 25
  • 26. Succeeding in Business with Microsoft Access 2013 Selecting the Correct Data Type • Helps store correct data in correct format while using least amount of space • Eases data entry and interactivity with data • Choosing certain data types results in user- friendly interactive features – Drop-down menus – Check boxes – Hyperlinks • Correctly manipulate data 26
  • 27. Succeeding in Business with Microsoft Access 2013 Assigning the Correct Field Size for Text Fields • Important to consider field size when assigning data types – Minimize space reserved for each record by assigning smallest data type that will store data • Be conservative when assigning field sizes – But not too conservative 27
  • 28. Succeeding in Business with Microsoft Access 2013 Assigning the Correct Field Size for Number Fields 28 Table 1.3: Field Sizes for the Number data type
  • 29. Succeeding in Business with Microsoft Access 2013 Dividing the Existing and Missing Data into Tables • Tables – Single most important component of database – Most databases contain: • Multiple tables • Hundreds or even thousands of records • Primary key – One field that creates unique value in each record – Used to identify each record in table – May be a combination of fields 29
  • 30. Succeeding in Business with Microsoft Access 2013 Database Design Process: Planning the Tables 30
  • 31. Succeeding in Business with Microsoft Access 2013 Naming Conventions • Database tables must: – Have unique names – Follow established naming conventions • General rules for naming objects – Object names cannot exceed 64 characters – Object names cannot include period, exclamation point, accent grave, or brackets – Object names should not include spaces – Most developers capitalize first letter of each word when table name includes two words 31
  • 32. Succeeding in Business with Microsoft Access 2013 Leszynski/Reddick Naming Conventions for Database Objects 32
  • 33. Succeeding in Business with Microsoft Access 2013 Level 1 Summary • Discovery phase • Identify existing and missing data • Determine tables – Determine data types • Follow naming conventions 33
  • 34. Succeeding in Business with Microsoft Access 2013 Level 2 Objectives: Understanding/Creating Table Relationships • Understand relational database objects and concepts • Create table relationships • Understand referential integrity 34
  • 35. Succeeding in Business with Microsoft Access 2013 Understanding Relational Database Objects • Users can view data in tables by: – Opening table – Creating other objects • Four main objects in database – Tables – Queries – Forms – Reports 35
  • 36. Succeeding in Business with Microsoft Access 2013 Tables • Data in relational database stored in one or more tables • View data in table – Open it and scroll through records • Most of the time, three other main database objects used to display data 36
  • 37. Succeeding in Business with Microsoft Access 2013 Queries • Query – Question asked about data stored in database • Query results – Similar in look to a table – Fields displayed in columns – Records displayed in rows – This arrangement of data in Access is called a datasheet 37
  • 38. Succeeding in Business with Microsoft Access 2013 Queries (cont’d.) • Select query – Most commonly used query – Data selected from table on which query based • Action query – Performs action on table – Select specific records in table and update them 38
  • 39. Succeeding in Business with Microsoft Access 2013 Queries (cont’d.) • Crosstab query – Performs calculations on values in field and displays results in datasheet • SQL-specific query – Must be written in SQL code 39
  • 40. Succeeding in Business with Microsoft Access 2013 Forms • Used to view, add, delete, and update records – Based on table or query – Interface more attractive than table datasheet • Customize form’s appearance with instructions and command buttons • Navigation or Switchboard form – Form displayed when database is opened – Provides controlled method for users to open objects in database 40
  • 41. Succeeding in Business with Microsoft Access 2013 Form Based on a Table 41
  • 42. Succeeding in Business with Microsoft Access 2013 Reports • Formatted presentation of data from table or query • Created as printout or to be viewed on screen • Data displayed by report usually based on query • Dynamic – Reflect latest data from object • Cannot be used to modify data 42
  • 43. Succeeding in Business with Microsoft Access 2013 Accounts Receivable Report 43
  • 44. Succeeding in Business with Microsoft Access 2013 Other Database Objects • SharePoint Services – Sharing data on company intranets and on the Web – Create a database on a SharePoint site to be accessed by authorized individuals • Macro – Instructions to automate simple database tasks • Module – Performs more sophisticated actions than macro – Written in Visual Basic for Applications (VBA) 44
  • 45. Succeeding in Business with Microsoft Access 2013 Understanding Relational Database Concepts • Relational database – Contains multiple tables to store related information • Common field – Field that appears in two or more tables and contains identical data to relate tables – Primary key in first table – Foreign key in second table 45
  • 46. Succeeding in Business with Microsoft Access 2013 Creating Table Relationships • Goal in good database design – Create separate tables for each entity – Ensure each table has primary key – Use common field to relate tables • Relate two (or more) tables – Query them as though they are one big table • Join – Specifies relationship between tables and properties of relationship 46
  • 47. Succeeding in Business with Microsoft Access 2013 One-to-Many Relationships • Abbreviated as 1:∞ • One record in first table matches zero one or many records in related table • Primary table – One “side” • Related table – Many “side” 47
  • 48. Succeeding in Business with Microsoft Access 2013 One-to-Many Relationship Between Customers and Prescriptions 48
  • 49. Succeeding in Business with Microsoft Access 2013 One-to-One Relationships • Abbreviated as 1:1 • Exists when each record in one table matches exactly one record in related table 49
  • 50. Succeeding in Business with Microsoft Access 2013 One-to-One Relationship Between Physical and Billing Addresses 50
  • 51. Succeeding in Business with Microsoft Access 2013 Many-to-Many Relationships • Abbreviated as ∞:∞ • Each record in first table matches many records in second table • Each record in second table matches many records in first table • Junction table 51
  • 52. Succeeding in Business with Microsoft Access 2013 Many-to-Many Relationship Between Employees and Classes 52
  • 53. Succeeding in Business with Microsoft Access 2013 Understanding Referential Integrity • Null value – Field does not contain any value • Entity integrity – No duplicate records in table; each record is unique – No primary key field contains null values • Referential integrity – If foreign key in one table matches primary key in second table, values in foreign key must match values in primary key 53
  • 54. Succeeding in Business with Microsoft Access 2013 Understanding Referential Integrity (cont’d.) • When database does not enforce referential integrity – Problems occur that lead to inaccurate and inconsistent data • Orphaned – No longer match between primary key in primary table and foreign keys in related table 54
  • 55. Succeeding in Business with Microsoft Access 2013 Referential Integrity Errors 55
  • 56. Succeeding in Business with Microsoft Access 2013 Overriding Referential Integrity • Might want to override referential integrity – Intentionally change primary key – Delete parent record • Cascade Update Related Fields – Change primary key value so that DBMS automatically updates appropriate foreign key values in related table • Cascade Delete Related Records 56
  • 57. Succeeding in Business with Microsoft Access 2013 Level 2 Summary • Main database objects – Table – Query – Form – Report • Relationship types – One-to-many – One-to-one – Many-to-many 57
  • 58. Succeeding in Business with Microsoft Access 2013 Level 3 Objectives: Identifying and Eliminating Database Anomalies by Normalizing Data • Learn the techniques for normalizing data • Evaluate fields that are used as keys • Test the database design 58
  • 59. Succeeding in Business with Microsoft Access 2013 Database Design Process: Normalizing the Data 59
  • 60. Succeeding in Business with Microsoft Access 2013 Normalizing the Tables in the Database • Normalization – Design process – Goals: • Reduce space required to store data by eliminating duplicate data in database • Reduce inconsistent data in database by storing data only once • Reduce chance of deletion update and insertion anomalies 60
  • 61. Succeeding in Business with Microsoft Access 2013 Normalizing the Tables in the Database (cont’d.) • Deletion anomaly – User unintentionally deletes only occurrence of data in database • Update anomaly – User fails to update some records or updates records erroneously, resulting in redundant data • Insertion anomaly – User cannot add data to database unless preceded by entry of other data 61
  • 62. Succeeding in Business with Microsoft Access 2013 Normalizing the Tables in the Database (cont’d.) • Functional dependency – Column in table considered functionally dependent on another column • If each value in second column associated with exactly one value in first column • Partial dependency – Field dependent on only part of primary key • Composite primary key – Primary key uses two or more fields to create unique records in table 62
  • 63. Succeeding in Business with Microsoft Access 2013 Normalizing the Tables in the Database (cont’d.) • Determinant – Field or collection of fields whose value determines value in another field • Natural key – Primary key that details obvious and innate trait of record • Artificial key – Field whose sole purpose is to create primary key 63
  • 64. Succeeding in Business with Microsoft Access 2013 First Normal Form (1NF) • Repeating group – Field contains more than one value • First normal form – Does not contain any repeating groups 64
  • 65. Succeeding in Business with Microsoft Access 2013 Second Normal Form (2NF) • Table must be in 1NF • Must not contain any partial dependencies on composite primary key • Tables in 1NF and contain primary key with only one field – Automatically in 2NF 65
  • 66. Succeeding in Business with Microsoft Access 2013 Third Normal Form (3NF) • Must be in 2NF and only determinants must be candidate keys – Candidate key • Field(s) that could function as primary key but was not chosen to do so • Tables in 3NF should not have transitive dependencies – Transitive dependency • Two nonkey fields both dependent on third field 66
  • 67. Succeeding in Business with Microsoft Access 2013 Level 3 Summary • Normal forms – First (1NF) – Second (2NF) – Third (3NF) 67
  • 68. Succeeding in Business with Microsoft Access 2013 Chapter Summary • Discovery: – Identify existing and missing data – Organize data into tables – Determine data types for each field • Tables, queries, forms, and reports • Table relationships – Established through common fields – Types • 1: ∞; 1:1; ∞ : ∞ 68
  • 69. Succeeding in Business with Microsoft Access 2013 Chapter Summary (cont’d.) • Normalization – Referential integrity – Reduces duplication and inconsistency – Forms: • 1NF • 2NF • 3NF 69