Lecture 1-Intoduction To DBMS
Lecture 1-Intoduction To DBMS
Lecture 1-Intoduction To DBMS
Data Information
• raw facts • data with context
• no context • processed data
• just numbers and • value-added to
text data
– summarized
– organized
– analyzed
Data vs. Information
• Data: 51007
• Information:
– 5/10/07 The date of your final exam.
– $51,007 The average starting salary of an
accounting major.
– 51007 Zip code of Bronson Iowa.
Characteristics of useful information
Just a moment-Key points
• Data constitute the building blocks of information
• Information is produced by processing data
• Information is used to reveal the meaning of data
• Accurate, relevant, and timely information is key
to good decision making
• Good decision making is key to survival in global
environment
Introducing the Database
• Camera
• In the context of a camera, where the data is
the photographic image but…
• Metadata would typically include the date the
photograph was taken and details of the
camera settings (lens, focal length, aperture,
shutter timing, white balance, etc.)
Examples of Metadata
Duplication of data
• Same data is held by different programs.
• Wasted space and potentially different values
and/or different formats for the same item.
Limitations of File-Based Approach
Data dependence
• File structure is defined in the program code.
Incompatible file formats
• Programs are written in different languages,
and so cannot easily access each other’s
files.
Fixed Queries/Proliferation of application
programs
Programs are written to satisfy particular
functions.
Any new requirement needs a new program.
In Summary
• Data stored in files Program 1
Data Definition 1
• Application programs Data Manipulation 1
File 1
(manipulation) takes
place separately in each Redundant data
program
• Data redundant across
files
Database Approach
Arose because:
• Definition of data was embedded in application
programs, rather than being stored separately and
independently.
• No control over access and manipulation of data
beyond that imposed by application programs.
Result:
• the database and Database Management System
(DBMS).
Database
• A very large, integrated collection of data.
• Shared collection of logically related data (and a
description of this data), designed to meet the
information needs of an organization.
• MS Access
• MySQL – freeware (Windows & Unix) to be
used in this course
• PostgreSQL – freeware (Windows & Unix)
• SQL Server – Microsoft database server
Please remember!!!
Database vs. File System
• Problems inherent in file systems make using
a database system desirable
• File system
– Many separate and unrelated files
• Database
– Logically related data stored in a single logical
data repository
Contrasting Database and File
Systems
Components of the DBMS environment
• Database system is composed of 5 main
parts:
Data
Hardware Software Procedures People
Bridge
Machine Human
Components of the DBMS environment
• Hardware
– Single PC
– A single mainframe
– Server-client Model
• Software
– DBMS
– Network software
– Programming languages
Components of the DBMS environment
• Data
– Operational data
– Metadata
– System catalog-contains metadata
• Procedures
– Log on to DBMS
– Start & Stop DBMS
Components of the DBMS environment