Database Concepts
Database Concepts
Database Concepts
Why Study Databases?
Databases have incredible value to businesses.
Very important technology for supporting operations.
Vastly superior to file processing systems
Businesses cannot survive without quality data
about their
internal operations and
external environment.
Foundation Data Concepts
Abstract Concepts
Entity – person, place, object or event
Small
Fields
Characters “B R E I M E R” form a field
Last Name
Breimer
A record is an entity
Tables
A bunch of records forms a table
Product Table
Customers Products
CID FName LName Address PID Description Cost
508 Eric Breimer ... 199 Viagra $45.99
509 Andrew Zych ... 200 Tooth Paste $2.58
510 Greg Smith ... 201 Hair Gel $5.99
Student
Course Student
Many to Many Course Student
Examples? Student
Analysis Technique
course has a student
Consider ThingA and ThingB
Can ThingA be related to more than one ThingB?
Can ThingB be related to more than one ThingA?
If the answers are yes and yes, then the relationship
is many to many.
How to Model Relationships
Orders
OID CID PID Quantity
001 508 199 500,000
002 508 201 2
003 510 201 1
Customers Products
CID FName LName Address PID Description Cost
508 Eric Breimer ... 199 Viagra $45.99
509 Andrew Zych ... 200 Tooth Paste $2.58
510 Greg Smith ... 201 Hair Gel $5.99
Find the name and hire date of the manager working on the
sales manual project
Traditional File Processing Sucks
File Processing:
Data is organized, stored, and processed
Lack of Integration –
data stored in
separate files
hard to combine data
Data Dependence –
changing the file format requires changing the program…
Database Management Approach
Consolidates data records into one CENTRAL
database that can be accessed by many
different application programs.
Database Management Software
(DBMS)
Definition:
Software that controls the creation,
Schema - A description
Subschema – describes
of the database
a subset of the database
and which users have
access to this subset
Data Definition Language
Language Used to
describe Schemas
and Subschemas
Describes
relationships between
different data
Provides a Logical
view of the data
Data Dictionary Entry
A more detailed description of the data in
a database
Specifies data types
and ranges
Assists programmers in
understanding the data
Physical vs. Logical
DBMS concentrate on
Physical access to
the underlying tables
Concurrency control
Query’s
Creating/deleting
tables
Physical vs. Logical
MIS systems are
(Logically) interface
with a DBMS
monthly reports
charts
automated inquiries
Application Development
Today, even non-technical staff can use
tools to build little programs that use a
database.
Database Management Systems have all
kinds of tools to develop custom application
programs and interfaces.
Example: The College’s MIS (Banner) is
actually an application built on top of a
Oracle Database.