Context:FIT2094_MOC Β· a procedural, relationally complete query language over relations Β· results are relations (closure) Β· what a DBMS translates SQL into
Quick Revision
π― Objective: a procedural, relationally complete query language over relations β states how.
Οproject_managerβ(Οproject_code=β25-5Aββ(PRDETAIL))
π‘ Common Mistake:Pure algebra has no NULLs β it assumes complete information; NULLs are an SQL addition. Algebraβs explicit operation order is what enables optimisation.
βοΈ Core Decision Matrix
Language
Procedural?
Role
relational calculus
no
completeness benchmark
relational algebra
yes
execution/optimisation
SQL
no (declarative)
user queries
graphical
no
visual
When It Flips: algebra prescribes an operation order (good for the optimiser); calculus/SQL state only the result β the DBMS bridges them by compiling SQL to algebra. Relational join generalises FIT1058 relational composition to data.
π Exam Execution Trace
Applied Exercise
Problem: Translate SELECT project_manager FROM PRDETAIL WHERE project_code='25-5A' into algebra.
Derivation Proof / Hand-Calculation Walkthrough: