Unit One
Unit One
COLLEGE
1
Module Title: Access & Use Database
Application
Module code: EIS WDDBA1 M08 0322
Nominal duration: 70 Hour
Access & Use Database Application
Unit one: Create database objects
Unit Two: Add record on table
Unit Three: Customize basic
settings
Unit one: Create database objects
Database Systems
Basic Design Principles
Creating Database Object
Creating Relationship
Introduction to Database Systems
A database is an integrated collection of logically
related records or files consolidated into a
common pool that provides data for one or more
multiple uses.
One way of classifying databases involves the
type of content, for example: bibliographic, full-
text, numeric, and image. Other classification
methods start from examining database models
or database architectures.
The data in a database is organized according to a
database model. The relational model is the most
common.
Con…
A Database Management System (DBMS) consists of
software that organizes the storage of data.
A DBMS controls the creation, maintenance, and use of
the database storage structures of organizations and of
their end users.
It allows organizations to place control of organization-
wide database development in the hands of Database
Administrators (DBAs) and other specialists. In large
systems, a DBMS allows users and other software to store
and retrieve data in a structured way.
Database management systems are usually categorized
according to the database model that they support, such
as the network, relational or object model. The model
tends to determine the query languages that are available
Con…
One commonly used query language for the
relational database is SQL, although SQL syntax
and function can vary from one DBMS to another.
A great deal of the internal engineering of a
DBMS is independent of the data model, and is
concerned with managing factors such as
performance, concurrency, integrity, and recovery
from hardware failures. In these areas there are
large differences between products.
Database Design Principles
Introduction to MS Access
MS Access is a database management tool that
enables one to store relevant data. This also has
the capabilities to retrieve, sort, summarize and
report results immediately and effectively.
It can combine data from various files (tables)
through creating relationships.
Con…
Microsoft Access (MS Access) enables one to
manage all important information from a single
database file. Within the file, one can use the
different objects:
Tables -Store your data in your database.
Queries - Ask questions about information stored
in your tables.
Forms - A form is a type of a database object that
is primarily used to enter or display data in a
database.
Reports - Allow you to print data based on
queries/tables that you have created
Con…
Basic Database Concept: In studying MS Access,
it is but necessary to understand some basic
elements of a database before proceeding to it.
Database Elements:
Data are raw facts. It tells the truth about
something; a person, a place, an object, etc.
Example:
Name
Girma
“Girma” is a data. “Girma” is my name, so it tells
something about a person. “Girma” is a Name
Gender “Male” is Girma’s gender. So it tells
Male
something about “Girma”.
Con…
Information is a collection of data (raw facts)
which is contained in 1 file (table in Access)
ID Number First Name Last Name Gender Birthday Address
Yes/No Yes and No values and fields that contain only 1 bit.
one of two values (Yes/No, True/False, or
On/Off).
Con…
If you use previous versions of Access, you will
notice a difference for two of those data types.
In Access 2013, we now have two data types —
short text and long text. In previous versions of
Access these data types were called text and
memo.
The text field is referred to as short text and your
memo field is now called long text.
Con…
Table 1. 2 Specialized data types in Access
Type of Data Description Size
Attachment Files, such as digital photos. Multiple files can be Up to about 2 GB.
attached per record. This data type is not
available in earlier versions of Access.
OLE objects OLE objects can store pictures, audio, video, or Up to about 2 GB.
other BLOBs (Binary Large Objects)
Hyperlink Text or combinations of text and numbers stored Up to 8,192 (each part of a
as text and used as a hyperlink address. Hyperlink data type can contain
up to 2048 characters).
Lookup Wizard The Lookup Wizard entry in the Data Type column Dependent on the data type of
in the Design view is not actually a data type. the lookup field.
When you choose this entry, a wizard starts to
help you define either a simple or complex
lookup field.
Calculated You can create an expression that uses data from You can create an expression that
one or more fields. You can designate different uses data from one or more
result data types from the expression. fields. You can designate different
result data types from the
expression.
Con…
These are all the different data types that
you can choose from when creating fields in
a Microsoft Access table.
Create Database Relationship
Table Relationship
Newcomers to the world of databases often have a hard time
seeing the differences between a database and a spreadsheet.
They see tables of data and recognize that databases allow you
to organize and query data in new ways, but fail to grasp the
significance of the relationship that gives relational database
technology & its name.
Relationships allow you to describe the connections between
different database tables in powerful ways. Once you’ve
described the relationships between your tables, you can later
leverage that information to perform powerful cross-table
queries, known as joins.
A relationship is a logical connection between two tables. Keys
are fields that are part of a table relationship. There are two
kinds of keys
Con…
Primary key
A table can have only one primary key. A primary
key is used to identify each record that you store
in the table. It will not allow a duplication of the
Primary Key thus make it unique. Primary Key is
the unique identification of one record. There is a
uniquely identification number, such as
ID number
A serial number
A code that serves as a primary key
Con…
Foreign key
A table can also have one or more foreign key. A
foreign key contains values that correspondent to
values in the primary key of another table.
You use table relationship to combine data from
related table.
Con…
Types of Database Relationships
One to One Relationship
In a one-to-one relationship, each row in one
database table is linked to 1 and only 1 other row
in another table.
In a one-to-one relationship between Table A and
Table B, each row in Table A is linked to another
row in Table B.
The number of rows in Table A must equal the
number of rows in Table B.
To illustrate the one-to-one relationship consider
the sample table design and data below:
Con…
Products Table
product_id Name
P0001 Savings
0001 P0001
0001 P0002
0002 P0002