1.-The-database-environment
1.-The-database-environment
ENVIRONMENT
Basic Concepts and Definition
What is DATABASE?
An organized collection of logically related
data. A database may be of any size and
complexity.
Databases today are used to store objects
such as documents, photographic images,
sound, and even video segments, in
addition to conventional textual and
numeric data.
In addition to storing data, you can also
sort, extract, and summarize information
What is DATA?
Historically, the term data referred to
known as facts that could be recorded
and stored in a computer media.
Since databases today are used to store
objects such as documents, photographic
images, sound and even video segments,
in addition to textual and numerical data.
To reflect this reality, the definition of
data now is:
Consists of facts, text, graphics, images,
sound and video segments that have
meaning in the user’s environment.
Example:
Baker, Kenetth 324917628
Doyle, Joan 467231428
Finkle, Clive 123456789
Lewis, John 987654312
McFerran, Debra 873548179
These facts satisfy our definition of
Summarized Data
Data in Context
What is METADATA?
These are data that describe the
properties or characteristics of other data.
Some of these properties include data
definitions, data structures and rules or
constraints.
Some sample metadata for the Class Roster
are listed in Table 1.1
For each data item that appears in the Class
Roster, the metadata show the data item, the
data type, length, minimum and maximum
allowable values and brief description of each
data item.
Descriptions of the properties or
characteristics of the data, including data
types, field sizes, allowable values, and
documentation.
SOLUTION:
The DATABASE Approach
Requires a Database
Management System (DBMS)
The Database Approach
It emphasizes the integration and
sharing of data throughout the
organization.
In Database approach, data is
One customer
may place
many orders,
but each order
is placed by a
single
customer
One-to-
many
relationship
One order has
many order
lines; each
order line is
associated
with a single
order
One-to-
many
relationship
One product
can be in
many order
lines, each
order line
refers to a
single product
One-to-
many
relationship
Therefore,
one order
involves
many
products and
one product is
involved in
many orders
Many-to-
Relational Databases
Database technology involving tables
(relations) representing entities and
primary/foreign keys representing relationships
Database Applications
Itis an application program (or set of related
programs) that is used to perform a series of
activities on behalf of database users.
Each database application performs some
combination of the following basic operations.
Create – Add new data to the database.
Read – Read current database data.
Update – Update or modify current database data
Delete – Delete current data from the database.
The Range of Database
Applications
Database range from those for a
single user with a desktop computer
or PDA to those on mainframe
computers with thousand of users.
The range of database applications