Professional Documents
Culture Documents
Relational Databases
Relational Databases
DATABASES
Catayas, Mary Mae
Laroda, Hezyl Mae
Lopez, Judy Ann
Learning Objectives:
Explain the importance and advantages of
databases, as well as the difference between
database systems and file-based legacy systems.
Explain the difference between logical and physical
views of database.
Explain fundamental concepts of database system
such as DBMS, schemas, the data dictionary, and
DBMS languages.
Describe what a relational database is and how it
organizes data.
Create a set of well-structured tables to store dat in
relational database.
Perform simple queries using the Microsoft Access
database.
Understanding DATABASES
A set of interrelated, centrally coordinated data
files that are stored with as little data
redundancy as possible.
DATA
HIERARCHY
related group of records
specific
attribute
(record)
Advantages of Database Systems
Data integration
Data sharing
Minimal data redundancy and data
inconsistencies
Data independence
Cross-functional analysis
File-Oriented Systems versus
Database Systems
data is an
organizational
resource that is
difficult to
used by and
integrate and
managed for the
update data
entire
and to obtain
organization, not
an
just the
organization
originating
wide view of
department
data
Problems with
redundancy
and
inconsistent
information
Database Management System
(DBMS)
◦ the program that manages and controls the
data and the interfaces between the data and
the application programs that use the data
stored in the database.
Database System
◦ the database, the DBMS, and the application
programs that access the database through
the DBMS.
Database Administrator
◦ the person responsible for coordinating,
controlling, and managing the database.
DATA WAREHOUSING
Very large databases containing detailed
and summarized data for a number of
years that are used for analysis rather
than transaction processing.
contain hundreds or thousands of
terabytes of data
they complement transaction processing
systems by providing support for
strategic decision making
usually updated periodically rather than
in real time
BUSINESS INTELLIGENCE
Analyzing large amounts of data for
strategic decision making.
Two Main Techniques:
◦ Online analytical processing (OLAP)
using queries to investigate hypothesized
relationships among data
◦ Data mining
using sophisticated statistical analysis,
including artificial intelligence techniques
such as neural networks, to “discover”
unhypothesized relationships in the data
Important notes:
Validate data (Data validation controls)
to ensure that data warehouse input is
accurate.
Verify accuracy (Scrubbing the data ) is
often one of the most time-consuming and
expensive steps in creating a data warehouse.
Control the access to the data warehouse
as well as to encrypt the stored data.
Regularly backup the data warehouse and
store the backups securely.
Importance of Good Data
Incorrect database data can lead to:
bad decisions,
embarrassment, and
angry users
losses
Database
Systems
Record Layout
Document that shows the items stored in a file,
including the order and length of the data
fields and the type of data stored.
Three
Levels
Of
Schemas
Data Dictionary
Information about the structure of the database,
including a description of each data element.
Inputs
◦ new or deleted data elements and changes in data
element names, descriptions, or uses
Outputs
◦ reports for programmers, designers, and users,
◦ (1) programs or reports using a data item,
◦ (2) synonyms for the data elements in a file, and
◦ (3) data elements used by a user.
These reports are used for system
documentation, for database design and
implementation, and as part of the audit trail.
DBMS Languages
Data Data Data Report
Definition Manipulation Query Writer
Language Language Language
(DDL) (DML) (DQL)
Builds the Changes High-level, simplifies
data database English-like, report
dictionary, content, that contains creation.
creates the including data powerful,
database, element easy-to-use
describes creations, commands
logical views, updates, that enable
and specifies insertions, users to
record or field and deletions. retrieve, sort,
security order, and
constraints. display data.