A record (レコード) is one entry of data that groups the related data about a single subject, and it corresponds to a horizontal row in a table.
Student No.
Name
Grade
S01
Aoki
2
S02
Inoue
1
S03
Ueda
3
In a student roster, for example, one student's number, name, and grade taken together form one record. The highlighted row in the figure is one such record for a single student. The column (or set of columns) used to tell each record in a table apart is called the primary key (主キー), and it is chosen so that its value never repeats across records.
AnalogyIt is like a single card in an address file. One card holds one person's name, address, and phone number.
How to rememberThe English word record means a written account. Think of it as one note jotted down about a person or an event, and it ties naturally to the idea of a single entry.
Exam points
ExamSetting a primary key (主キー) lets you pinpoint each record (レコード) in the same table (表) one by one without mixing them up.
A field (フィールド) is each slot for data that makes up a record, and it corresponds to a vertical column in a table.
A single field lines up the same kind of data for every record, so a "Name" field holds only names. Each field is given a name and a data type set in advance, such as number, text, or date.
AnalogyThink of the vertical strip you trace down the "Phone" column of a roster for everyone. Whichever row you look at, that strip holds only phone numbers.
How to rememberField also means a plot of farmland. Just as a field grows only one crop, it is a place that holds only one kind of value.
Exam points
ExamWhen one column alone would leave duplicate values, two or more fields (フィールド) can be combined to form the primary key (主キー).
ExamIn a relational database (関係データベース), records (レコード) in separate tables are linked through the values of a field that both tables share.
A data item (項目, also called データ項目) is each unit, such as "Name" or "Price," into which meaningful data is divided, and in a table it means almost the same thing as a field.
One record is expressed as a set of values for several data items. Deciding which data items to keep is the same as deciding how the table's columns are laid out.
AnalogyIt is like each heading in a household account book, such as "Date," "Item," and "Amount." Each heading decides what gets written down.
How to rememberBoth kanji in 項目 stand for the smaller divisions of a whole. Picture each line of a bulleted list.
Exam points
ExamA data item (項目) that can be calculated from other items is redundant (冗長), so the table does not store it. If unit price and quantity are present, for example, the amount can be calculated whenever it is needed.
ExamData analysis (データ分析) carried out as a step in database design lists the data items the business needs and sorts out how those items relate to one another.
A table (テーブル) is a grid-shaped container that a relational database uses to hold data, with same-shaped records as rows and fields as columns.
Table (students)
Record (row for student 1)
Value of the "Student No." field
Value of the "Name" field
Record (row for student 2)
Value of the "Student No." field
Value of the "Name" field
Each table represents one kind of subject, such as students, books, or orders. A relational database consists of several tables, and each cell where a row and a column meet holds a single value.
AnalogyIt is like a class contact list. Each row is one person, the columns are name and phone number, and the whole sheet covers one class.
How to rememberBesides a dining table, the English word table also means a chart or list, the same table found in timetable.
Exam points
ExamBefore adding a row to a table (テーブル) with a column that refers to values in another table, register the matching row in the referenced table first.
ExamA table's columns follow from the data items (データ項目) that have been identified, so the table is created only after the items (項目) have been listed out.
Hyō (表) is the native Japanese word for a table (テーブル), and it refers to the same container made of rows and columns.
When explaining relational databases, individual tables are often named by adding 表 to the subject, as in the "Students" table (“生徒”表). In the same way, row is used as another word for record, and column as another word for field.
AnalogyLike "restroom" and "bathroom," the names differ but they point to the same thing.
Exam points
ExamNormalization (正規化) splits tables (表) so that the same data is not stored in several places, which prevents mismatches caused by updating only some of the copies.
A file (ファイル) is a body of data in which records of the same format are collected and saved as a single unit.
A file is saved under a name, and a program reads and writes the records inside by specifying that name. Before databases became common, each business program managed its data in its own dedicated files, so the same data easily ended up duplicated across several files.
AnalogyIt is like a binder of forms that all share the same layout. Each sheet inside is one record.
How to rememberAs an English verb, file means to put papers away in order, and as a noun it means the papers kept that way. Picture a bound stack of sheets.
Table vs. File
Aspect
Table
File
Key differenceWhat it groups
A grid of rows and columns representing one kind of subject in a relational database
Records of the same format saved together as one unit
Duplication of data
Several business processes share the same table
When each business process keeps its own files, the same data tends to be duplicated
Key points
Each record in a table is identified one by one by its primary key, which can also be built by combining several columns.
Tables are linked through the values of a shared column, and data goes into the referenced table first.
A data item that can be calculated from other items is redundant, so the table does not store it.
Table (テーブル) and hyō (表) are two names for the same thing: a grid-shaped container made of rows and columns.