Access
Access
Database Management
System
Before defining Database
Management System (DBMS), it
is better to define the following
terminologies first.
• Data
• Information
• Database
DBMS
Data
Data is a Collection of facts made up of text,
numbers, dates & etc
• Data can be defined as unprocessed information.
Information
Information is the meaning given to data in the
way it is interpreted and is used to make decision
• Information is data that have been organized and
communicated in a accurate and meaningful
manner.
Cont…
Database
A database is a collection of logically related
information.
Database Management System (DBMS)
DBMS is thus, a software that enables users
Centralization of information
management
Data shared by different groups of users
and application programs
Provision of multiple interfaces
Representation of complex relationships
between data
Integrity constraint handling
Advanced facilities for backup and
recovery
Data Sharing in a Database
Environment
Cont…
Advantage of database
Sharing of data
Enforcement of security
Enforcement of development and
maintenance standards
Reduction of redundancy
Avoidance of inconsistency across files
Maintenance of integrity
Data independence
Functions DBMS
For example:
– In a student database, the basic entity is
the student.
– Entity attributes (information recorded
about that entity) may include:
First and last name
Grade point average
Home address
Current address
Date of birth
Course opted
Cont…
Advantages:
Improved conceptual simplicity
Disadvantages:
– Relational databases do not
have enough storage area to
handle data such as images,
digital and audio/video.
In a RDBMS,
Table
Queries
Forms
Reports
Macros
Modules
Pages
Description of db
elements
Tables
Tables are the key part of the database,
that are used to store all the information
that is contained in the database.
Queries
Queries are the questions that you ask your
database about the data stored in it.
Forms
Forms are used to provide an easy way to
view or enter data into the database.
Cont…
Reports
Reports are used to print out data from your
database. You can print out Tables and
Queries as well, but Reports can be
formatted to produce more professional
looking documentation.
Pages
Pages are Internet/Intranet Forms. They
can be used to input data into an Access
database via the Internet (or Intranet) using
a web browser such as Microsoft Explorer.
Cont…
Macros
Macros are an advanced way of automating
common tasks in the database.
Modules
Modules are an advanced way of
automating common tasks in the database
using Visual Basic programming.
DBMS Tools
MS Access
MySQL Se le
MS SQL cted
to b
Oracle e us
DB2 ed
Postgre
& etc
Starting MS Access
2007
Introduction
A database is a collection of information
that's related.
Access allows you to manage your
tables.
If you selected the Enforce Referential Integrity
press Enter
Creating A New Record
Click on the "New" button
You will be moved to the empty row at the bottom of the
table.
You can use the [Tab] key to move through the fields in
the row.
Type in the new data
When inputting data into the table, Access
automatically saves the data after each new
record.
Navigating Records
Append query
Select query
A select query is a type of database object that
shows information in Datasheet view (Datasheet
view: A window that displays data from a table,
form, query, view, or stored procedure in a row-and-
column format.
In Datasheet view, you can edit fields, add and
delete data, and search for data). A query can get
its data from one or more tables, from existing
queries, or from a combination of the two. The
tables or queries from which a query gets its data
are referred to as its record source. we can create
this query either in Design view or by using a wizard
Update query
You use update queries to add, change, or delete the
data in one or more existing records. You can think
of update queries as a powerful form of the Find
and Replace dialog box. You enter a select criterion
(the rough equivalent of a search string) and an
update criterion (the rough equivalent of a
replacement string).
Unlike the Find and Replace dialog box, update
queries can accept multiple criteria, allow you to
update a large number of records in one pass, and
allow you to change records in more than one table
at one time.
Append query
This article explains how to create and run an
append query.
You use an append query when you need to add
new rows of data to an existing table.
If you need to change or update part of the data in
an existing set of records, such as one or more
fields, you can use an update query.
The process of creating an append query follows
these basic steps:
Create a select query.
Convert the select query to an append query.
Choose the destination fields for each column in the
append query. Run the query to append the records.
Make a table query
A make table query retrieves data from one or
more tables, and then loads the result set into a
new table.
That new table can reside in the database that
you have open, or you can create it in another
database.
Typically, you create make table queries when
you need to copy or archive data.
To create such a query, in query Design view,
create a select query and then modify that query
until it returns the records you want. You can
select data from more than one table and, in a
real sense, you can de-normalize your data.