Information Technology · Ch 2 — Introduction to DBMS
Relational Terminology — Tables, Records and Fields
Relational Terminology — Tables, Records and Fields
In a relational database, data is stored in tables. It is worth learning the exact vocabulary, because these words are used constantly:
- A table (relation) is a collection of related data arranged in rows and columns, rather like a grid on paper. For example, a
Studenttable stores data about students. - A field (column / attribute) is a single column of the table. It represents one specific property of the data — for example,
RollNo,Name,ClassandMarksare fields of aStudenttable. Every value in a field is of the same kind (all names, all marks, and so on). - A record (row / tuple) is a single row of the table. It holds one complete set of related values — for example, all the details of one particular student. If a table has 40 students, it has 40 records.
- A cell (data value) is the single piece of data where one row meets one column — for example, the marks of one particular student.
A small Student table might look like this:
| RollNo | Name | Class | Marks |
|---|---|---|---|
| 1 | Aarti Deshpande | XI-A | 78 |
| 2 | Rohan Patil | XI-A | 85 |
| 3 | Sneha Kulkarni | XI-B | 72 |
Here the whole grid is the table; RollNo, Name, Class and Marks are the fields; each horizontal line of details (for example, 1, Aarti Deshpande, XI-A, 78) is a record; and the single value 85 is a cell. …
A collection of related data organised into rows and columns in a relational database; for example …
A single column of a table representing one specific property of the data, such as RollNo or Name. All values in a field …
A single row of a table holding one complete set of related values — for example, all the detail …