8.3.1 Tables or Files
Data is organized into tables or files. In database system, a file is called a table. A file is a set of all occurrences a given record structure. A table is the relational database equivalent of a file. A table or files, contains a set of related records that store data about specific entity. Tables and files are shown as two-dimensional structures that consist of rows and columns. Columns represent a fields, or characteristics of the entity, while row represent a record which it is refer to individual instances. Figure 8-2 shows an example of one table named STUDENT exist in STUDENT REGISTRATION SYSTEM.
8.3.2 Fields
Fields are common for files and databases. A field is a physical implementation of an attribute exists in ER-D. It's the smallest unit of meaningful data to be stored in a file or database. Attributes is represented as a field in a tables. A table consists of more than one attributes. Fields can have values. Figure 8-2 shows an example of fields exist in STUDENT table. These values can be of fixed or variable length; can be alphabetic, numeric, or others depending on setting during the design; refers to domain. A domain is a set of allowable values for one or more than one values. There are four types of fields can be stored :
 |
Primary key - is a field whose value is used to identify one and only one record |
 |
Secondary key - is a field that can be used as an alternate key that can be used to identify a single record in a table |