Lecture 6 Database Primer
Lecture 6 Database Primer
Barbara Endicott-Popovsky
CSSE592/491
In collaboration with:
Deborah Frincke, Ph.D.
Director, Center for Secure and Dependable
Systems
University of Idaho
Text Book
Both broad survey and focused
Chapters 1-2 lay groundwork
Chapters 3 –7 Software
• Chapter 6
– Confidentiality and Integrity
– Inference Problems—statistical databases
– Different Sensitivity Levels
Chapter 8 Management
Chapter 9 Privacy, ethics, the law
Chapter 10 Cryptography – the how
In this section of the course we
will look at…
BYTE:
Combination of BITS representing a CHARACTER
FIELD:
Collection of BYTES representing a DATUM or Fact
RECORD:
Collection of FIELDS reflecting a TRANSACTION
*
Source: Laudon & Laudonr
File Organization
FILE:
Collection of similar RECORDS
DATABASE:
• Organization’s Electronic Library of FILES
• Organized to serve business applications
ATTRIBUTE:
Description of a particular ENTITY
KEY FIELD:
Field used to retrieve, update, sort
RECORD
Source: Laudon & Laudonr
Key Field
Field in Each Record
Uniquely Identifies THIS Record
For RETRIEVAL
UPDATING
SORTING
*
DIRECT:
Disk oriented; accessible without
regard to physical sequence
*
DBM
Source: Laudon & Laudonr
Components Of DBMS
DATA DEFINITION LANGUAGE:
– Defines data elements in database
DATA DICTIONARY:
– Formal definitions of all variables in database
– Controls variety of database contents
– Data elements
*
DBM
Source: Laudon & Laudonr
Structured Query Language (SQL)
Emerging standard
Data manipulation language
For relational databases
*
DBM
Source: Laudon & Laudonr
Elements Of SQL
SELECT:
List of columns from tables desired
FROM:
IDs tables from which columns will be selected
WHERE:
Includes conditions for selecting specific rows,
conditions for joining multiple tables
*
DBM
Source: Laudon & Laudonr
Two Views Of
Data
PHYSICAL VIEW: Where is data physically?
– Drive, disk, surface, track, sector (block), record
– Tape, block, record number (key)
*
DBM
Source: Laudon & Laudonr
Storage Hierarchy
BIT
BYTE
FIELD
RECORD
FILE
DATABASE
CLASS
ONE-TO-MANY:
STUDENT STUDENT STUDENT
A B C
CLASS CLASS
MANY-TO-MANY:
1 2
ROOT Employer
2nd
Ratings Salary Pension Insurance Health
Child
NETWORK NETWORK
1 2
Conceptual Design
Physical Design
Entity-relationship diagram
Normalization
DATA DATABASE
ADMINISTRATION TECHNOLOGY &
MANAGEMENT
DATABASE
MANAGEMENT
SYSTEM
DATA
PLANNING &
MODELING USERS
METHODOLOGY
CAN
HAVE
1
PART: #, DESCRIPTION, UNIT PRICE,
PART
SUPPLIER #
CAN
HAVE
1
EXAMPLES:
Accounts Receivable
Personnel Records
Payroll
DUPLICATE:
ea. remote CPU has copies of common files
e.g., layouts for standard reports and forms
Maintains DBMS
Hypermedia:
• Nodes contain text, graphics, sound, video, programs
• Organizes data as nodes.
EXTRACT, DATA
INTERNAL TRANSFORM ACCESS &
ANALYSIS
DATA
SOURCES
QUERIES &
REPORTS
INFORMATION
DIRECTORY OLAP
DATA MINING
EXTERNAL
DATA
SOURCES
DATAMINING:
Tools for finding hidden patterns,
relationships, for predicting trends
*
• Element Integrity
• Element Accuracy
Hiding existence
Indirect attack
• Using Sum, Count, Median to derive information
• Tracker attacks (Intersection of sets)
• Linear system vulnerability—
apply algebra of multiple
equations
Aggregation—additional problem
• Inferences from aggregating data
• Data mining increases
Problems
• Global actions (i.e., backup)
• Polyinstantiation
• Small items controlled
• Cost and performance
• Consumer resistance to military model