1. Gyanastra
  2. Database Systems
  3. Normal Forms
  4. Universal Table and Problems of Redundancy
Free lesson, no account needed 6 min read 5 practice questions after it

Database Systems · Normal Forms

Universal Table and Problems of Redundancy

Overview

A universal table is a single table holding every attribute and record of a database. It makes design and retrieval simple, but it repeats the same information in many rows, causing redundancy and wasted space. This section shows why separating tables reduces that redundancy.

Key concepts

  • Universal table: one big table that stores all the data of the database in one place.
    Instead of creating hundreds of separate tables for entities such as employee and department, all their attributes become columns of this one table and all records are stored as rows.
  • Construction: take the complete database extract, collect all attributes of all entities and relationships, and put them into one table.
  • Example structure: UniversalTable(EmployeeID, EmployeeNumber, DepartmentID, DepartmentNumber, DepartmentName, SupervisorID, ...) — employee, department and supervisor information appear in the same row.
  • Advantages: no overhead of maintaining many separate tables; no need to repeatedly join many tables for retrieval; data is available in one place; no need to first work out how many entities and relationships exist and what their separate attributes are.
  • Redundancy: the major problem of the universal table — the same information is repeated in many rows, causing wastage of space.
    It arises because department-level information is stored together with every employee-level record.
  • Separated design: department details are stored once in a Department table, and the Employee table holds only the DepartmentID as a reference.
    The DepartmentID may repeat for each employee, but DepartmentName and SupervisorID are not repeated.

How it works

  1. Collect all attributes of every entity and every relationship.
  2. Place them all as columns of one table and store all records as rows.
  3. Retrieve information by searching the required field directly in the single table — no join between an Employee table and a Department table is needed.
  4. Because department-level values sit in every employee row, they repeat once per employee.
  5. Separating the data into a Department table and an Employee table stores the full department details only once.

Worked examples

Redundancy in a universal table

Given: DepartmentID = 1, DepartmentName = Computer Science, SupervisorID = 10, and 100 employees in the department.

EmployeeNumberDepartmentIDDepartmentNameSupervisorID
11Computer Science10
21Computer Science10
31Computer Science10
............
1001Computer Science10
  • DepartmentID = 1 is repeated 100 times.
  • DepartmentName = Computer Science is repeated 100 times.
  • SupervisorID = 10 is repeated 100 times.
  • Only the employee number changes from row to row.

With separate tables:

Department(DepartmentID, DepartmentName, SupervisorID)

DepartmentIDDepartmentNameSupervisorID
1Computer Science10

Employee(EmployeeNumber, DepartmentID)

EmployeeNumberDepartmentID
11
21
31
......
1001
  • DepartmentName = Computer Science and SupervisorID = 10 are stored only once.
  • DepartmentID = 1 is still repeated in the Employee table, but the full department information is not repeated.
  • The universal table therefore causes much more redundancy than the separated design.

Direct retrieval in the universal table

Question: what is the department for which employee number 1 is working?

  • Find the row where EmployeeNumber = 1.
  • Read the DepartmentName value directly from that row.
  • No join is required.

Comparison

AspectUniversal tableMultiple separated tables
Number of tablesOne big tableMany tables
QueryingDirect search in one table; no need to join many tablesQueries may require joins across tables
Design effortNo need to separately work out entities, relationships and their attributes; put all attributes in one tableRequires identifying entities, relationships and attributes
Maintenance overheadNo overhead of maintaining many tablesMore tables must be maintained
RedundancyHigh: department details repeat for every employeeLower: department details stored once; only the department ID is repeated in employee records
Space usageWastage of space due to repeated informationMore efficient use of space for repeated department information

Revision summary

  • A universal table stores all database attributes and records in one single big table.
  • Its advantages are simple design, no overhead of many tables, and easy retrieval without joining many tables.
  • The obvious problem is redundancy, which leads to wastage of space.
  • With 100 employees in one department, DepartmentID, DepartmentName and SupervisorID are each repeated 100 times.
  • In the separated design, department details are stored once and only the DepartmentID repeats in the Employee table.
  • Redundancy remains an obvious problem even if enough storage space is assumed and the universal table is kept.

Previous-year exam insights

  • Redundancy in a universal table also causes update, insertion and deletion anomalies: the same fact stored many times must be updated in every copy (risk of inconsistency), a new department cannot be inserted without an employee, and deleting the last employee of a department loses the department's details.
  • A universal (single) relation is in 1NF by definition if all attribute values are atomic; the redundancy problem is removed by decomposing it into smaller relations, and a lossless-join decomposition guarantees that joining the pieces reconstructs exactly the original relation without spurious tuples.
  • A functional dependency X → Y holds if every pair of tuples agreeing on X also agrees on Y; in the universal table DepartmentID → DepartmentName, SupervisorID holds, which is exactly why those values repeat for every employee of the department.
  • Decomposition should be dependency-preserving as well as lossless: every functional dependency of the original relation should be checkable within some decomposed relation, otherwise constraints cannot be enforced without a join.
  • Normalization proceeds 1NF (atomic values) → 2NF (no partial dependency of a non-prime attribute on part of a candidate key) → 3NF (no transitive dependency; for every nontrivial X → Y, X is a superkey or Y is prime) → BCNF (for every nontrivial X → Y, X is a superkey).
  • Higher normal forms reduce redundancy but increase the number of tables and hence the joins needed for retrieval, so normalization trades query cost against update efficiency; denormalization is a deliberate reversal of this trade-off.
Pages 1–2 of 2