FROM ER MODELING TO ADVANCED
OPTIMIZATION
The Complete Exam & Certification Study Guide: Normalization
(1NF–BCNF), Complex Joins, Subqueries, Window Functions,
ACID Transactions & Indexing
Designed for Computer Science & Engineering Degrees, Vocational IT Programs (FP DAW /
DAM / ASIR - Bases de Datos), Data Analytics Certifications (Oracle SQL, Microsoft DP-900,
CompTIA Data+), and Technical Assessments.
TABLE OF CONTENTS
1. Module 1: Relational Model Fundamentals & Keys (Primary, Foreign, Candidate,
Superkey, Composite & Referential Integrity)
2. Module 2: Entity-Relationship (ER) Modeling & Cardinality (1:1, 1:N, N:M
Transformations to Relational Tables)
3. Module 3: Database Normalization Master Matrix (1NF, 2NF, 3NF & Boyce-Codd
Normal Form - BCNF Step-by-Step)
4. Module 4: SQL Architecture & Command Sublanguages (DDL, DML, DQL, DCL, TCL &
Execution Order)
5. Module 5: Mastering SQL Joins, Set Operations & Subqueries (INNER, LEFT, RIGHT,
FULL, SELF JOIN & Correlated Subqueries)
6. Module 6: Aggregations, Grouping & Window Functions (GROUP BY vs. HAVING,
OVER, PARTITION BY, RANK & DENSE_RANK)
7. Module 7: Transactions (ACID), Concurrency Control & Indexing (Isolation Levels,
Deadlocks & B-Tree vs. Hash Indexes)
8. Module 8: Official Exam-Style Practice Test & Answer Key (10 High-Frequency Exam
Questions + SQL Solutions)
MODULE 1: RELATIONAL MODEL FUNDAMENTALS & KEYS
Every university and official certification exam begins by testing the structural rules of Edgar F.
Codd's Relational Model (Modelo Relacional).
, 1.1. Core Terminology Equivalences
Término en Español (FP /
Formal Relational Term SQL / Implementation Term Universidad) Definition & Exam Nuance
Relation Table Relación / Tabla A two-dimensional structure
composed of rows and columns
representing an entity or
relationship.
Tuple Row / Record Tupla / Fila / Registro A single instance or entry in a
table (unordered; duplicate tuples
are prohibited in pure relational
theory).
Attribute Column / Field Atributo / Columna / Campo A named property with a specific
Domain (Dominio) (data type and
allowed value range).
Degree (Arity) Number of Columns Grado de la Relación Total number of attributes
(columns) in a relation.
Cardinality Number of Rows Cardinalidad Total number of tuples (rows)
currently stored in a relation
(changes frequently via DML).
1.2. The Complete Hierarchy of Database Keys (Claves)
Key Type Nombre en Español Strict Technical Definition
Superkey Superclave Any single attribute or
combination of attributes that
uniquely identifies a tuple (row) in
a table. (Can contain redundant
attributes, e.g., [Student_ID,
Email, First_Name]).
Candidate Key Clave Candidata A minimal Superkey—a unique
identifier with zero redundant
attributes. If you remove any
attribute from it, it stops being
unique (e.g., Student_ID alone,
or National_ID alone).