Академический Документы
Профессиональный Документы
Культура Документы
base
Overview of
Hierarchy of data
BIT
All data is stored in a computers memory or storage devices in the form of binary digits or bits. A bit can be either ON of OFF representing 1 or 0.
BYTE
is a group of 8 bits. One byte can represent one character or, in different contexts, other data such as a sound, part of a picture etc.
FIELD
is a group of characters. e.g. data held about a person may be split into many fields including ID Number, Surname, Initials, Title, Street, Town, etc
RECORD
is a group of fields holding all the information about one person or item
FILE
a collection of records. A stock file will contain a record for each item of stock, and so on.
DATABASE
may consist of many different files, linked in such a way that information can be retrieved from several files at once.
Database Structures
Hierarchical
Relational
Network
Hierarchical Databases
This is the simplest type of database. The tree structure illustrates this concept.
Disadvantages
Hierarchical Databases
Information is accessed from the top to the bottom (top-down). Illustrates a parent-child relationship where each item relates only to the one above and below it. Disadvantage following the hierarchy is sometimes difficult, cumbersome, and time consuming.
Network Databases
These types of databases have a less rigid structures than the hierarchical model. They permit the use of pointers to establish the shortest path to specific information.
This model is well suited for transaction processing like those found in banking, inventory control, and airline reservation systems.
Network Databases
Good for standardized operations. Disadvantage: Complex pointer implementation makes modification involved, and requires care to keep established links from being lost. When transactions are not predictable or stable, a relational database is a better model.
Disadvantages
System complexity Lack of structural independence
Relational Database
Allows multiple associations using common fields in multiple databases. Arranged in a two-dimensional table format. Files are known as relations, fields are columns, and records are called rows. Performs the following: joining, projection, and selection.
Relational Database
Used in libraries effectively Users must define, create, and implement files. This is not automatically done by the relational database or database management system. Disadvantage: there is no way to link fields in a practical manner. Explicit links are formed by relations (or files rather than specific fields contained within files).
Relational database
data stored in tables must put data into the correct tables define relationship between tables primary key Standard Database Notation
EMPLOYEES (EmployeeID, Surname, Forename)
Disadvantages
Substantial hardware and system software overhead Poor design and implementation is made easy May promote islands of information problems