1. Gyanastra
  2. Database Systems
  3. Relational Model and Keys
  4. Relation (Table), Tuple (Row), and Attribute (Column)
Free lesson, no account needed 3 min read 3 practice questions after it
Asked in past papers1 time
  • UGC NET2005

Database Systems · Relational Model and Keys

Relation (Table), Tuple (Row), and Attribute (Column)

Overview

The relational model uses formal terminology that maps directly onto the everyday idea of a table. A relation is a table, a tuple is a row, and an attribute is a column.
Each row captures one entity or relationship from the ER model, so understanding this mapping is the basis for reading and writing every relational query.

Key concepts

  • Relation: formally a relation, informally a table. It contains rows and columns.
  • Tuple: a row — one particular row of the relation/table.
  • Attribute: a column — the entire column is one attribute.
  • Row as entity: in the relational model, every row represents an entity or relationship from the ER model; one row completely describes one entity.
  • Interchangeable terms: instead of saying relation and tuple, one may say table and row.

How it works

  1. Start with the term relation; informally, treat a relation as a table.
  2. A table consists of rows and columns.
  3. Identify a row as a tuple — one specific row in the table.
  4. Interpret each row/tuple as complete information about one entity or relationship in the ER model.
  5. Identify a column as an attribute.

Worked examples

Consider a Student entity with attributes:

  • Name
  • Roll number
  • Marks

One row of the Student table contains the name, roll number, and marks of one student. That row/tuple completely describes one Student entity.

Comparison

Term in relational modelInformal equivalentMeaning
RelationTableThe complete table containing rows and columns
TupleRowOne particular row; represents one entity or relationship
AttributeColumnOne column of the relation/table

Revision summary

  • Relation = table, tuple = row, attribute = column.
  • A table has rows and columns.
  • A tuple/row represents an entity or relationship from the ER model.
  • One row completely describes one entity — e.g. one Student row gives complete information about one student.
  • The terms can be used interchangeably: table for relation, row for tuple.

Previous-year exam insights

  • The formal relational-model vocabulary maps as: relation = table, tuple = row, attribute = column, domain = set of allowed (atomic) values of an attribute, degree/arity = number of attributes, cardinality = number of tuples.
    Asked inUGC NET 2005
  • The fields into which a tuple is divided are its attributes (columns); the set of permissible values for an attribute is its domain — the two terms are not synonyms.
    Asked inUGC NET 2005
  • A relation is formally a set of tuples, so duplicate rows are not allowed and tuple order is immaterial; attribute order is also immaterial, but each attribute is identified by its name.
  • Every value in a tuple must be atomic (indivisible) — the first normal form requirement of the relational model; composite or multivalued attributes are not permitted.
  • A relation schema is the relation name plus its attribute set (e.g. Student(Name, RollNo, Marks)); a relation instance is the actual set of tuples at a given time.
  • A null denotes a missing or not-applicable value; it is not the same as zero or blank, and it is not an ordinary value in the attribute's domain.
Pages 1–2 of 2