Accessing and Using Database Application
Accessing and Using Database Application
By Dejenie A.
MODULE CONTENTS:
LO1. Create database objects
– Occupational Health & Safety (OH&S)
– Introduction to database and database management systems
– Designing a database incorporating basic Database design principles
– Opening Database application
– Creating Database objects
– Modifying Database object as required
– Creating Relationship with tables
LO2. Add record on table
– Adding data in a table according to information requirements
– Modifying and deleting records as required
– Saving and compiling database objects
LO3. Customize basic settings
– Adjusting page layout to meet user requirements
– Opening and viewing different toolbars
– Formatting fonts as appropriate for the purpose of the database entries
LO1. Create Database Objects
Introduction to database and database management
systems
• Data means known facts that can be recorded and that have
implicit meaning.
–For example, consider the names, telephone numbers, and
addresses of the people you know.
–You may have recorded this data in an indexed address book
or you may have stored it on a hard drive, using a personal
computer and software such as Microsoft Access or Excel.
• Information is meaningful data or processing output of
computer that is meaning and understandable by the user.
• Database is a collection of related data.
• 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.
• A database can best be described as a way
of storing large amounts of information.
• The data can be retrieved and we can even
ask questions of the data and get answers.
– For example: You may want to know how
many Students enrolled in every occupational
level.
• 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 used
in database system.
• 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 to access the
database.
• Commonly used language for the relational
database are Ms- Access, SQL, Oracle, etc.
• In this level we will discuss the concepts of
database using Ms Access.
Introduction 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.
• 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 - A table is a collection of data about a specific topic,
such as products or suppliers. Using a separate table for each
topic means that you store that data only once. This results in
a more efficient database and fewer data-entry errors.
– Queries - You use queries to view, change, and analyze data
in different ways. You can also use them as a source of
records for forms, reports, and data access pages.
– Forms - A form is a type of a database object that is primarily
used to enter or display data in a database. You can also use a
form as a switchboard that opens other forms and reports in
the database, or as a custom dialog box that accepts user
input and carries out an action based on the input.
– Reports - A report is an effective way to present your
data in a printed format. Because you have control over
the size and appearance of everything on a report, you
can display the information the way you want to see it
– Modules - A module is essentially a collection of
declarations, statements, and procedures stored
together as one named unit to organize your Microsoft
Visual Basic code.
– Data access pages - A data access page is a special type
of Web page designed for viewing and working with data
from the Internet or an intranet— data that is stored in a
Microsoft Access database or a Microsoft SQL Server
database.
Database design Principles
• In studying MS Access, it is necessary to understand
some basic elements of a database before
proceeding to it.
• Database Elements:
• Data :It tells the truth about something; a person, a
place, an object, etc.
• It is raw facts and figures about things.
Name “Girma” is a data. “Girma” is my name, so it tells
Girma something about a person. “Girma” is a Name.
Gender
Male” is Girma’s gender. So it tells something about “Girma”.
“
Male
Lookup The Lookup Wizard entry in the Data Type column Dependent on the data type of
Wizard in the Design view is not actually a data type. When the lookup field.
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 one You can create an expression
or more fields. You can designate different result that uses data from one or more
data types from the expression. fields. You can designate
different result data types from
the expression.
• 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.
• 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
• 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
• 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
Types of Database Relationships
• There are three types of relationships
1. 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:
Customer name table
Products table
product_id (primary
key)
name
Mapping table
cust_id
product_id
Assume that the bank has only 2 customers and
2 products:
Customer Table
cust_id firstname last name
0001 Abebe Tekalign
Mapping Table