Lesson 1
Lesson 1
Course information
Lecturer: Dr Loumngam
Duration : 32 hours
Class : BM 2
Prerequisite : None
Objective of the course
Problem solving
Employees
Employee ID First Name Last Name Gender
123 Gambo Amani Male
333 Ze Ondoa Male
456 Tombi Aroko Female
842 Bouba Gomena Female
777 Cosmas Taokreo Male
Relational Database
This looks just like a two dimensional table of rows
and columns. The name of the table is Employees,
each column of the table has its own title, and each
row has the same structure.
Employees
Employee ID First Name Last Name Gender
123 Gambo Amani Male
333 Ze Ondoa Male
456 Tombi Aroko Female
842 Bouba Gomena Female
777 Cosmas Taokreo Male
Relational Database
Each row has a value for employee number, first
name, last name, and gender.
Employees
Employee ID First Name Last Name Gender
123 Gambo Amani Male
333 Ze Ondoa Male
456 Tombi Aroko Female
842 Bouba Gomena Female
777 Cosmas Taokreo Male
Relational Database
Information structured in tables is very concise; at a
glance we can obtain useful information.
Employees
Employee ID First Name Last Name Gender
123 Gambo Amani Male
333 Ze Ondoa Male
456 Tombi Aroko Female
842 Bouba Gomena Female
777 Cosmas Taokreo Male
Relational Database
The Employees table can be considered a relation
of 5 tuples where each tuple has 4 values drawn
from each of the employee identifier, first name,
last name, and gender domains.
Employees
Employee ID First Name Last Name Gender
123 Gambo Amani Male
333 Ze Ondoa Male
456 Tombi Aroko Female
842 Bouba Gomena Female
777 Cosmas Taokreo Male
Relational Database
A database designer must be able to express
structured information as verbalizations: i.e we use
values from a single row to create complete
statements that explain the meaning of a row.
Employees
Employee ID First Name Last Name Gender
123 Gambo Amani Male
333 Ze Ondoa Male
456 Tombi Aroko Female
842 Bouba Gomena Female
777 Cosmas Taokreo Male
Relational Database
A verbalization that fits the information in one row
of the Employees table is:
Employee with ID … has a first name …, a last
name …, and is of … gender
Employees
Employee ID First Name Last Name Gender
123 Gambo Amani Male
333 Ze Ondoa Male
456 Tombi Aroko Female
842 Bouba Gomena Female
777 Cosmas Taokreo Male
Advantages of Relational Database
1. Select
the File tab.
Several templates
will appear below
the Blank desktop
database option
Create a database from a template
3. Select a template to
review it. A preview of the
template will appear, along
with additional
information on how the
template can be used.
Click Open.
Click Browse.
Open an object.
Close the object.
Rename the object.
Close the database without saving your changes.
Activity based on the workfile
Recall that an elementary verbalization is one where
the verbalization cannot be simplified in any further
way. Simpler statements would result in a loss of
information.
1. Write the verbalization for the Customer table using
elementary verbalizations.
2. What verbalizations apply to the Menu items table
in the access2016sampledatabase database?
3. What verbalizations apply to the Products table in
the access2016sampledatabase database?
Activity based on the workfile
Tables are good for storing closely related information. Let's say you
own a bakery and have a database that includes a table with your
customers' names and information, like their phone numbers, home
addresses, and email addresses. Because these pieces of information
are all details on your customers, you’d include them all in the
same table. Each customer would be represented by a
unique record, and each type of information about these customers
would be stored in its own field. If you decided to add any more
information—say, a customer's birthday—you would simply create a
new field within the same table.
Understanding tables
All tables are composed of horizontal rows and
vertical columns, with small rectangles
called cells in the places where rows and columns
intersect. In Access, rows and columns are referred
to as records and fields.
Table
In Access, all data is stored in tables, which puts tables at the
heart of any database. tables are organized into
vertical columns and horizontal rows.
To open an existing table
Open your database, and
locate
the Navigation pane.
In the Navigation pane,
locate the table you want to
open.
Double-click the desired
table
How to navigate a table
How to navigate a table
How to navigate a table
How to navigate a table
How to navigate a table
Table
In Access, rows and columns are referred to as records and fields.
A field is more than just a column; it’s a way of organizing information by the type of
data it is. Every piece of information within a field is of the same type. For example,
every entry in a field called First Name would be a name, and every entry in field
called Street Address would be an address.
Likewise, a record is more than just a row; it's a unit of information. Every cell in a
given row is part of that row’s record.
Table
The number at the left of each row? It’s the ID number that identifies
each record. The ID number for a record refers to every piece of
information contained on that row.
Although tables store all of your data, the other three objects—
forms, queries, and reports—offer you ways to work with it. Each of
these objects interacts with the records stored in your database's tables.
Activity
Open the Customers table.
Add a new record to the table. Be sure to enter
data for every field.
Find the record with the name Sula Smart,
and replace it with a name of your choice.
Hide a field, then unhide it.
Change the alternate row color.