Introduction to MS Access

Overview

Time: 45 min
Objectives
  • Introduction to MS Access application

  • Manipulating data using MS Access

Microsoft Access is a database management tool which is simple to use. It provides an easy, user friendly user interface to create, edit and manage databases.

In a relational database, data is generally stored in the form of tables. Each table here represents an entity set while the columns of the table represent the entity attributes. Each row in the table represents a single entity inside the entity set.

Note: Every UIC student should have free access to Microsoft office product. Once you open MS Access in your device if prompted to sign in, use your UIC email address and password to sign in.

CREATING DATABASE AND TABLES:

access_1

access_2

access_3

access_4

access_5

DATA TYPES – FIELD PROPERTIES & FORMATTING

access_6

access_7

access_8

access_9

access_10

access_11

Set the primary keys as below:

Customer - ID

Item - ID

Purchase - Customer ID, Item ID, Date

access_12

RELATIONSHIPS

access_13

access_14

access_15

Referential Integrity – Helps prevent actions which might affect the relationship. For e.g. Changing only the data type of ID column in Customer table to Text but not the Customer ID column in Purchase table.

access_16

QUERIES

Queries help fetch data from tables based on the search criteria provided

Query 1 – Items purchased by customers with First Name “Kevin”

access_17

access_18

access_19

access_20

access_21

Query 2 – Items purchased by customers with First Name “Kevin” OR “Selena”

access_22

access_23

Query 3 – Items purchased by customers with First Name “Kevin” AND Quantity greater than 3

access_24

access_25

Key Points

  • design and create databases using MS Access

  • designing queries to grab required data from databases