Professional Documents
Culture Documents
ï Desktop
± Single-user database running on a personal
computer
ï Multi-user
± Supports multiple users at the same time
Types of Databases (continued)
ï orkgroup:
± Multi-user database that supports a small
group of users or a single department
ï nterprise:
± Multi-user database that supports a large
group of users or an entire organization
DATABASES APPROACHES
ï entralized Database
± A single logical database on network computers.
ï Distributed Database
± A single logical database that is spread physically
across computers in multiple locations that are
connected by a data communications link.
Data Redundancy
ï Data redundancy results in data inconsistency
G
ï Insertion anomalies
± Occur when entering new records
ï Deletion anomalies
± Occur when deleting records
The Database System Environment
Foreign key
A value or column in one table that refers to a primary key in
another table.
omposite key
omposite key is used in database management systems as
a key which has two or more fields in the columns in the
table, or in a file.
RELATIONAL KEYS« (cont)
andidate Key
One of a number of keys that may serve as the
primary key of an entity. Also called candidate
identifier.
Secondary Key
A candidate key that is not selected to become
the primary key. A synonym is Alternate key.
w
w
ï ntity
ï Attribute
ï elationship
ntity-elationship Diagram
A graphical representation of entity-relationship model
Also called - diagram or just D
w §##$
%##&'(#§
&§%#)w*+
Structure Query Language
(SQL)
SQL is the most popular computer language used
to create, modify, retrieve and manipulate data
from relational database management systems.
SQL Keywords
,
DATA RETRIEVAL
#
,
-. ,
DATA MANIPULATION
1 1
-1
/ -
,
2
-
DATA TRANSACTION
# /,/ 1 -
.
-
j
-
j
/ 3 3
-
DATA DEFINITION
-#
-
/
2 4 , "" 2
/
2 -
DATA CONTROL
-
5
6&%# 7
4 -
&§)8§7
,
-
NORMALIZATION
It's the process of efficiently organizing data in a
database. There are two goals of the normalization
process: eliminate redundant data (for example,
storing the same data in more than one table) and
ensure data dependencies make sense (only storing
related data in a table). Both of these are worthy goals
as they reduce the amount of space a database
consumes and ensure that data is logically stored.
CARDINALITY
ardinality refers to the number of
members in the set. hen specifically
applied to database theory, the cardinality
of a table refers to the number of rows (or
tuples) contained in a table.
DATA WAREHOUSE
A data warehouse is a central repository for all or significant
parts of the data that an enterprise's various business
systems collect. The term was coined by . H. Inmon. IBM
sometimes uses the term "information warehouse."
An enterprise wide collection of data that is subject oriented,
integrated , scrubbed, involatile, easy to access and use, and
contains historical data and summarization