Data Structure-Physical and Logical Arrangement of Data in Files or Databases
Data Structure-Physical and Logical Arrangement of Data in Files or Databases
Data Structure-Physical and Logical Arrangement of Data in Files or Databases
PROCESSING STRUCTURES
1. Organization method- the way records are arranged physically on the secondary
storage device.
2. Access method- technique used to locate records and to navigate through the
database or file
1. Flat-file- data files are structured, formatted and arranged to suit the specific
needs of the owner or primary user.
a. Sequential structure- records are stored in a contiguous location that
occupies a specified area of dick space.
b. Indexed structure- in addition to the actual data file, there exists a
separate index that is itself a file of record addresses
- Records are dispersed throughout the disk without regard to
physical proximity to other related records.
c. Virtual storage access method (VSAM)- used for very large files that
require routine batch processing and a moderate degree of individual
record processing.
d. Hashing Structure – employs algorithm that converts the primary key of a
record directly into a storage address.
e. Pointers structure- used to create a linked-list.
Manager Laptop
Physical Database tables - are constructed from the data model with each entity in the
model being transformed into a separate physical table
Data Anomalies
Normalizing Tables
2 conditions:
1. All nonkey attributes in the table are dependent on the primary key.
2. All nonkey attributes are independent of the other nonkey attributes.
1. Identify Entities
Conditions for Valid Entities:
a. It must consist of two or more occurrences
b. It must contribute at least one attribute that is not provided through other
entities
2. Construct a data model showing entity associations
3. Add primary keys and attributes to the model
4. Normalize the data model and add foreign keys
5. Construct the physical database
6. Prepare the user views
Disadvantages of EAMs
1. Operational Efficiency
2. Verifying EAM integrity
Usages include:
1) Footing and balancing entire files or selected data items (e.g., extending
inventory)
5) Printing confirmations
Popular because:
4) GAS can be used to audit the data currently being stored in most file
structures and formats
Auditing issues:
ACL