Introduction to Database
MtM
anagemen
Outline
Outline
Database characteristicsDatabase characteristics
DBMS features
Architectures
Architectures
Initial Vocabulary
Initial Vocabulary
Data: raw facts about things and eventsData: raw facts about things and events
Information: transformed data that has value for decision making
value for decision making
Essential to organize data for retrieval and maintenance
maintenance
Database Characteristics
Database Characteristics
Persistent : stable storagePersistent : stable storage
Shared : multiple users and uses
Shared : multiple users and uses
Interrelated : data stored as entities and
University Database
University Database
Registration Faculty Registration Assignment Entities:students, faculty, courses, offerings, enrollments Relationships: Grade Recording Course Scheduling Relationships:
faculty teach offerings, students enroll in
offerings, offerings made
University Database
g
of courses, ...
Water Utility Database
Water Utility Database
Billing ProcessingPayment
E titi
g Processing
Entities:
customers, meters, bills, payments, meter readings
Relationships:
Meter Reading
Service Start/ Stop
Relationships:
bills sent to customers,
customers make payments, customers use meters, ...
Database Management
System (DBMS)
Collection of components that supportCollection of components that support data acquisition, dissemination, storage, maintenance, retrieval, and formatting
maintenance, retrieval, and formatting
Enterprise DBMSs
Desktop DBMSs
Desktop DBMSs
Embedded DBMSs
Major part of information technology infrastructure
Database Definition
Database Definition
Define database structure before using aDefine database structure before using a database
Tables and relationships
Tables and relationships
SQL CREATE TABLE statement G
University
Database
University
Database
R
elatio
n
sh
ip
s
Ta
b
le
s
University Database (ERD)
University Database (ERD)
Student Offering Faculty
StdSSN StdClass StdMajor Student OfferNo OffLocation OffTime Offering FacSSN FacSalary FacRank Faculty Teaches j StdGPA Accepts FacHireDate Has Supervises
E ll t
Nonprocedural Access
Nonprocedural Access
Query: request for data to answer aQuery: request for data to answer a question
Indicate what parts of database to retrieve
Indicate what parts of database to retrieve not the procedural details
Improve productivity and improve
Improve productivity and improve accessibility
SQL SELECT d hi l
SQL SELECT statement and graphical tools
Application Development
Application Development
Form: formatted document for data entryForm: formatted document for data entry and display
Report: formatted document for display
Report: formatted document for display
Use nonprocedural access to specify data requirements of forms and reports
requirements of forms and reports
Data
Entry
Form
Data
Entry
Form
Sample
Report
Sample
Report
Procedural Language Interface
Procedural Language Interface
Combine procedural language withCombine procedural language with nonprocedural access
Why
Why
Batch processing
Customization and automation
Customization and automation
Transaction Processing
Transaction Processing
Transaction: unit of work that should beTransaction: unit of work that should be reliably processed
Control simultaneous users
Control simultaneous users
Recover from failures
Database Technology Evolution
Database Technology Evolution
Era Generation Orientation Major Features
1960s 1st Generation File File structures and proprietary program interfaces
1970 2nd G ti N t k N t k d hi hi
1970s 2nd Generation Network Navigation
Networks and hierarchies of related records,
standard program interfaces
1980s 3rd Generation Relational Non-procedural
languages, optimization, transaction processing
DBMS Marketplace
DBMS Marketplace
Enterprise DBMSEnterprise DBMS
Oracle: dominates in Unix; strong in Windows
SQL Server: strong in WindowsSQL Server: strong in Windows
DB2: strong in mainframe environment
Significant open source DBMSs: MySQL, g p y , Firebird, PostgreSQL
Desktop DBMS
Access: dominates
FoxPro, Paradox, Approach, FileMaker Pro
Data Independence
Data Independence
Software maintenance is a large partSoftware maintenance is a large part (50%) of information system budgets
Reduce impact of changes by separating
Reduce impact of changes by separating database description from applications
Change database definition with minimal
Change database definition with minimal effect on applications that use the
Three Schema Architecture
Three Schema Architecture
View 1 View 2 View n ExternalL l
View 1 View 2 View n Level
External to Conceptual
Conceptual Schema
Conceptual Level
Conceptual Mappings
Conceptual
Internal InternalLevel
to Internal Mappings
Schema Level
Differences among Levels
Differences among Levels
External Forms
Reports
Conceptual Tables
Internal
Files needed to store the tables
Client-Server Architecture
Client Server Architecture
a) Client, server, and
d t b th
b) Mulitple clients and 1 server
diff t t
database on the same computer
on different computers
Client Server Client Server Database Server Client Client Database
c) Multiple servers and databases on different computers
Client Server Server
Organizational Roles
Organizational Roles
Specialization
Functional User Information Systems
Specialization
Indirect Parametric Power
Functional User
DBA Analyst/Programmer Management
Information Systems
Indirect Parametric Power
Technical Non Technical
DBA Analyst/Programmer Management
Database Specialists
Database Specialists
Database administrator (DBA)Database administrator (DBA) More technical
DBMS specific skillsDBMS specific skills
Data administrator
Less technical
Less technical
Planning role
Summary
Summary
Databases and database technology vitalDatabases and database technology vital to modern organizations
Database technology supports daily
Database technology supports daily operations and decision making
Nonprocedural access is a crucial feature
Nonprocedural access is a crucial feature