Database Management: An Introduction
Database Management: An Introduction
An Introduction
What is Data?
What is Information?
What is Database?
Data Hierarchy
1. Bit
2. Byte
3. Field
4. Record
5. Database
6. File
Database Defined
Database:
A collection of related data organized in a way
that facilitates data searches.
What are some examples of Databases?
1. Entering Data
2. Querying Data
3. Creating Database Reports
Entering Data
Data Entry:
process of getting information into a
database
possible methods of data entry:
Data Entry Professional, Electronic Files, Historical
Records, or Web Based (Forms)
Querying Data
Querying:
how we get information from a database
Structured Query Language (SQL):
most common language used to interface
with databases
Example:
SELECT DISTINCTROW STUDENT_ID, GRADE
FROM GRADES
WHERE GRADE = 95
ORDER BY STUDENT_ID;
Querying Data continued
Query By Example (QBE)
enables you to fill out a grid, or template, in
order to construct a description of the data
you would like to retrieve.
Creating Database
Reports
Report:
A compilation of data from the database that
is organized and produced in a printed format.
Typically produced on paper, but also can be
displayed on-screen.
Example: Quarterly Sales Report
Data Structure
Database has two parts:
Data
Data Structure: how the data is organized.
Data Model:
representation of entities and their
relationships to the real world
Primary Key:
a unique identifier in the database
one or more fields
Data Structure continued
Students Table
________________________________________________
Primary Key Field Name Field Type Field
Length
yes Student ID Number 9
no Last Name Text 20
no First Name Text 15
Database Management Systems
Approaches
Parent
Child
The Network Model
Children
The Relational Model
A good relational database design eliminates
unnecessary data duplications and is,
therefore, easier to maintain
Relationship: joining two tables on a common
field
Relationship
Data Relationships
A relationship is a logical link between
entities based on how they interact
Entity-Relationship Diagrams
One-to-one relationship (1:1)
One-to-many relationship (1:M)
Many-to-many relationship (M:N)
Cardinality
Cardinality notation
Crows foot notation
Unified Modeling Language (UML)
Data Relationships
Entity-Relationship Diagrams
Normalization
Normalization
Table design
Involves four stages: unnormalized design, first
normal form, second normal form, and third
normal form
Most business-related databases must be
designed in third normal form
A technique used to make complex databases
more efficient and easier to handle
Eliminates Redundant Data
Normalization
Standard Notation Format
Designing tables is easier if you use a
standard notation format to show a tables
structure, fields, and primary key