DBMS Tutorial · Revision notes

Database Concepts & Relational Architecture

A DBMS (Database Management System) is software that stores, protects and manages data for many users at the same time. Data is kept in tables (relations), designed with ER diagrams, and identified by keys.

Quick revision

  • DBMS removes redundancy, inconsistency and gives security, sharing and recovery
  • Three levels: external (many) → conceptual (one) → internal (one)
  • Physical independence is easier than logical independence
  • ER: entity, attribute, relationship; cardinality 1:1, 1:N, M:N
  • M:N needs a new table; 1:N puts FK on the N side
  • Weak entity key = owner key + partial key
  • Super key ⊇ candidate key ⊇ primary key
  • Super keys = 2^(n−k) for one candidate key of size k
Read the full Database Concepts & Relational Architecture notes on Doubtclip →