Professional Documents
Culture Documents
Ch18 - RDBMS
Ch18 - RDBMS
Relational database
For some types of field, such as a text field, the field length is
important.
Primary key
Each record in a database file needs to be given a
unique identifier - the primary key.
It needs to be carefully chosen;
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.