Database and MS Access 15 March 2018
Database and MS Access 15 March 2018
INFORMATION
Data
Data
Consists of raw facts, and when organized may be
transformed into information
Database
A collection of data organized to meet users’ needs
Database management system (DBMS)
A group of programs that manipulate the database and
provide an interface between the database and the
user of the database or other application programs
Attributes of Data
Sharable, Moveable, Secure, Accurate,
Timely, Relevant
Why build a database?
Handle large amounts of data
Satisfy multiple users
Make information retrieval faster
Make data input faster
Provide greater accuracy
DBMS ‘Discussion’
A collection of programs that enables you to store, modify, and
extract information from a database.
There are many different types of DBMSs, ranging from small systems
that run on personal computers to huge systems that run on
mainframes.
The following are examples of database applications:
computerized library systems
automated teller machines
flight reservation systems
computerized parts inventory systems
Schematic
Hierarchy of data Example
Personel file
Payroll file
Characters
1000100 (Letter ‘F’ in ASCII)
(bytes)
Terminology
Database
• A collection of integrated and related files
File
• A collection of related records
Record
• A collection of related fields
Field
• A group of characters
Character
• Basic building block of information, represented by a byte
Data Entities, Attributes, and Keys
Entity
• A generalized class of people, places, or things
(objects) for which data are collected, stored, and
maintained
• E.g., Customer, Employee
Attribute
• A characteristic of an entity; something the entity is
identified by
• E.g., Customer name, Employee name
Keys
• A field or set of fields in a record that is used to
identify the record
• E.g, A field or set of fields that uniquely identifies the
record
Keys and Attributes
Employee # Last name First name Hire date Dept. #
Schematic
Application
Data Files programs Users
Payroll Reports
Payroll programs
Invoicing Reports
Invoicing programs
Inventory
Inventory control Reports
control programs
Management
Management inquiries Reports
inquiries programs
Drawbacks
Data redundancy
Duplication of data in separate files
Lack of data integrity
The degree to which the data in any one file is accurate
Program-data dependence
A situation in which program and data organized for
one application are incompatible with programs and
data organized differently for another application
Database Approach
The database approach…
A pool of related data is shared by multiple
application programs
Rather than having separate data files, each
application uses a collection of data that is
either joined or related in the database
Schematic
Payroll Reports
program
Payroll data
Inventory Inventory
program Reports
data Database
management
Invoicing system
Data Invoicing
Reports
program
Other
data
Other Reports
programs
Schematic
Project 1
Project 1 Project 2
Project Number Description Dept. Number Dept. Number Dept. Name Manager SSN
Schematic
Project Number Description Dept. Number
155 Payroll 257
498 Widgets 632
226 Sales manager 598
Screen snap
Schemas and Subschemas
Schema
A description of the entire database
Subschema
A file that contains a description of a subset of
the database and identifies which users can
perform modifications on the data items in that
subset
Schematic
DBMS
Schema
Schematic
SCHEMA DESCRIPTION
SCHEMA NAME IS XXXX
AUTHOR XXXX
DATE XXXX
FILE DESCRIPTION
FILE NAME IS XXXX
ASSIGN XXXX
FILE NAME IS XXXX
ASSIGN XXXX
AREA DESCRIPTION
AREA NAME IS XXXX
RECORD DESCRIPTION
RECORD NAME ISXXXX
RECORD ID IS XXXX
LOCATION MODE ISXXXX
WITHIN XXX AREA FROM XXXX THRU XXXX
SET DESCRIPTION
SET NAME IS XXXX
ORDER IS XXXX
MODE IS XXXX
MEMBER IS XXXX
.
.
.
Data Dictionary
Data Dictionary
A detailed description of all data used in the
database
Schematic
NORTHWESTERN MANUFACTURING
Schematic
Data
on
storage
devices
DBMS
Historically, SQL has been the favorite query language for database
management systems running on minicomputers and mainframes.
SQL ‘Discussion’ (2)
Increasingly, however, SQL is being supported by PC database
systems because it supports distributed databases (databases that
are spread out over several computer systems). This enables
several users on a local-area network to access the same database
simultaneously.
Screen snap
Popular Database Management
Systems for End Users
Microsoft Access
Lotus Approach
Inprise (formerly Borland) dBASE
DBMS Selection Criteria
• Database size
• Number of concurrent users
• Performance
• Integration
• Features
• The vendor
• Cost
Distributed Databases
Distributed database…
A database in which the actual data may be
spread across several smaller databases
connected via telecommunications devices
‘Pretty’ picture
Data Warehouse
Data warehouse
A relational database management system designed
specifically to support management decision making
Current evolution of Decision Support Systems (DSSs)
Data mart
A subset of a data warehouse for small and medium-
size businesses or departments within larger
companies
Schematic
Relational
databases
Data
Hierarchical extraction
databases process
Network
databases Data
cleanup
process
Flat files
Spreadsheets Data
End user access wharehouse
Query and
analysis
tools
Designing a Customer Data Warehouse
Schematic
dBASE
ODBC Import
ACCESS Paradox
database database
ODBC Export
ODBC Link
Lotus 1-2-3
spreadsheet
Object-Relational Database Management
Systems (ORDBMS)
Object-relational database management system (ORDBMS)
• A DBMS capable of manipulating audio, video, and graphical data.
Hypertext
• Users can search and manipulate alphanumeric data in an
unstructured way
Hypermedia
• Allows businesses to search and manipulate multimedia forms of
data
Spatial data technology
• Use of an object-relational database to store and access data
according to the location it describes and to permit spatial queries
and analysis