Jongwook Woo Access Project: Creating and Using a Database Cis100 Lab Jongwook Woo, PhD
Jan 03, 2016
Jongwook Woo2
cis100 Lab Access
What is Database
Access Database
What is the difference between Excel and Access
Access Relational Database
Table, Record, Key
Table relationship
Query
Contents
Jongwook Woo3
cis100 Lab Access
Databases (DB)
Storing data
Database advantages
Sharing information: Transaction– One department to another
More functions– Security: Password to access– Less data redundancy
• Excess storage reduced– Data integrity: Consistent data
Database Management Systems (DBMS) Create, modify, gain access to databases We just call DBMS DB
Jongwook Woo4
cis100 Lab Access
MS Access Database
Light Weight Database
Relational Database– Composed of tables– Data stored in tables
• Rows and columns– Record = row– Field = column
Small size DB For small business or individual usage
Industrial DB
Oracle, MS SQL, IBM DB2 MySQL (freeware)
Jongwook Woo5
cis100 Lab Access
Excel vs DB (Access)
Same
Store data Composed of tables
Difference
Excel is for personal data DB is to share data for multiple users DB provides many data management functions
– Explained in the previous slides as DB
DB is for business
Excel is for the personal usage
Jongwook Woo10
cis100 Lab Access
Key Field
Primary Key (Unique Key)
Unique identifier that links records logically
Common examples
– Social security number
– Driver’s license
– Credit card account
– Client Number
– Trainer number
Foreign Key
Primary Key of another table
Jongwook Woo11
cis100 Lab Access
Relational Database
Tables related via common data item
Trainer Number Foreign Key for Client Table Primary Key for Trainer Table
Client Number
Name … Trainer Number
BS27 Blant … 42
… … … …
TE26 Telton … 48
Trainer Number
Last Name
… YTD earnings
42 Perry … $27,620
48 Stevens … $23,567
… … … …
primary key
Jongwook Woo14
cis100 Lab Access
Creating an Additional Table (Trainer Table)
Primary key is very important
Jongwook Woo15
cis100 Lab Access
Query, Form, Report
Query
Select fields you want to retrieve and display from fields of a table
Combine and select fields you want to retrieve and display from fields of
tables
Access provides Query Wizard
Form
Display and navigate data of tables
Report
Display and print data of tables