Aller au contenu

| | |

Vous êtes ici : DAVIDFR

Teaching SQL with Simplicity: A Shift from Relational Algebra to Canonical Databases

12/06/2025 à 13h en 301 by Nicoleta Preda

Abstract: Traditional SQL teaching often begins with relational algebra, reinforcing an imperative mindset that does not align with SQL’s declarative nature. This approach encourages students to think in terms of algebraic operations rather than reasoning about data and constraints, leading to solutions that rely on nested queries and procedural breakdowns where they are unnecessary. We propose shifting the focus to canonical databases and functional dependencies (FDs), enabling students to develop an intuitive understanding of cardinalities, \texttt{GROUP BY} queries, and SQL’s expressive limitations. FDs, often confined to data modeling, are fundamental in query formulation: they dictate which attributes can be grouped safely and reveal structural properties that support the handling of queries involving negation or universal quantification, highlighting when a query must be rewritten as a difference of subqueries. Our approach provides a more intuitive alterna
  • Intranet