Professional Documents
Culture Documents
Unit 2
Unit 2
Unit 2
Unit 2
Manipulation of Data Using the
Database Management System (DBMS) Graphical User (GUI)
Learning Objectives
Define the different terminologies in Data Manipulation Using
Database Management System Graphical User
Relate the different terms and basic concept in Unit 1 when it comes to
Graphical User Interface
Identifying the rules in giving Data Names and definitions
Differentiate the different classifications of attributes
Presentation of Contents
TERMINOLOGY
Database: A database can be one, stand-alone table that can contain many
fields of information. This is the simplest, yet least powerful type of
databasand is often referred to as a “flat” database.
Relational Databases: Many tables that are linked through common fields
and can ensure greater accuracy and less input of data. Relational
databases increase flexibility of data and allow ease of collecting and
maintaining historical data.
1
Unit 2: Manipulation of Data Using the
Database Management System (DBMS) Graphical User (GUI)
Table (Entity Type) - A table contains or holds the data. Tables can limit the
types of data in fields and can assist in integrity and accuracy of data.
Generally, tables do not perform calculations and are simply data
collectors for input or other means of acquiring data. Fields comprise
the records, records comprise the tables, and tables comprise the
database.
RECORD - A record is a collection of fields for an item you are tracking. For
example, a record consists of all the fields for a person if you are
tracking associates in a company. In addition, a record is a single row
which consists of multiple fields.
2
Unit 2: Manipulation of Data Using the
Database Management System (DBMS) Graphical User (GUI)
Multi-Valued Attribute: An attribute that can have multiple values for an entity is
known as multi-valued attribute. For example, the Phone no (attribute) of
student (entity) can have multiple value because a student may have many
phone numbers. Here, Phone no is multi valued attribute.
Derived Attribute: An attribute that can be derived from another attribute is known
as derived attribute. For example, age can be derived from birth date of
student.
3
Unit 2: Manipulation of Data Using the
Database Management System (DBMS) Graphical User (GUI)
Null Valued Attribute: An attribute which has not any value for an entity is known
as null valued attribute. For example, there may be chance when a student
has no phone no. In that case, phone no is called null valued attributes.
Key Attribute: An attribute that has unique value of each entity is known as key
attribute. For example, every student has unique student no. Here, student no.
is key attribute.
INTRODUCTION TO MS ACCESS
DATABASE FILE
TABLE
FIELD
DATA TYPE
VALUE/RECORD
*Is a column on a datasheet and defines the data type for a set
of values in a table.
4
Unit 2: Manipulation of Data Using the
Database Management System (DBMS) Graphical User (GUI)
4. Data types - are the properties of each field. A field only has one
data type.
Examples:
Field: LastName
Data type: Text
5
Unit 2: Manipulation of Data Using the
Database Management System (DBMS) Graphical User (GUI)
Queries - You use queries to retrieve specific data from your database
and to answer questions about your data. For example, you can use a
query to find the names of the employees in your database who live in
a particular state.
Forms - Forms give you the ability to choose the format and
arrangement of fields. You can use a form to enter, edit, and display
data.
Macros - Macros give you the ability to automate tasks. You can use a
macro to add functionality to a form, report, or control.
Modules - Like macros, modules give you the ability to automate tasks
and add functionality to a form, report, or control. Macros are created
by choosing from a list of macro actions, whereas modules are written
in Visual Basic for Applications.
In Access, tables are used to store data, queries to retrieve data, forms
to enter data, and reports to display data.
Notes:
What is a Datasheet?
6
Unit 2: Manipulation of Data Using the
Database Management System (DBMS) Graphical User (GUI)
Understanding Tables
Note: When you view a blank database for the first time in Datasheet
view, you see a column named ID. This column is by default the
primary key field.
Views are different ways of looking at the same object. Tables have
four views:
Data Types
7
Unit 2: Manipulation of Data Using the
Database Management System (DBMS) Graphical User (GUI)
o Yes/No - logical data. It is use when only one of two values are
valid. Yes/No, True/False, etc.-
8
Unit 2: Manipulation of Data Using the
Database Management System (DBMS) Graphical User (GUI)
A Sample Table using the different data types and field properties in Microsoft Access 2007
Field Name Data Type Field size Format Input MaskValidation Rule Validation Text
PersonnelID Autonumber
LastName Text 25 >
FirstName Text 20 >
Social Security # Text 15 000-00-0000
Street address Text 25
City Text 20
State Text 2 >
Zip Text 5
Gender Text 1
Favorite Number Number 0 and <1000 Favorite Number must be between 1 and 999.
9
Unit 2: Manipulation of Data Using the
Database Management System (DBMS) Graphical User (GUI)
10