TY - GEN
T1 - Teaching SQL with Simplicity
T2 - 4th ACM SIGMOD International Workshop on Data Systems Education: Bridging Education Practice with Education Research, DataEd 2025, co-located with the ACM SIGMOD/PODS conference
AU - Preda, Nicoleta
AU - Jachiet, Louis
N1 - Publisher Copyright:
© 2025 Copyright held by the owner/author(s). Publication rights licensed to ACM.
PY - 2025/7/28
Y1 - 2025/7/28
N2 - 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, 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 alternative to relational calculus, making SQL semantics accessible even to students with less mathematical background, while remaining rigorous and formally grounded.
AB - 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, 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 alternative to relational calculus, making SQL semantics accessible even to students with less mathematical background, while remaining rigorous and formally grounded.
UR - https://www.scopus.com/pages/publications/105016259010
U2 - 10.1145/3735091.3737570
DO - 10.1145/3735091.3737570
M3 - Conference contribution
AN - SCOPUS:105016259010
T3 - Proceedings of the 4th ACM SIGMOD International Workshop on Data Systems Education: Bridging Education Practice with Education Research, DataEd 2025
SP - 6
EP - 10
BT - Proceedings of the 4th ACM SIGMOD International Workshop on Data Systems Education
A2 - Liut, Michael
A2 - Bhowmick, Sourav S.
A2 - Alawini, Abdussalam
PB - Association for Computing Machinery, Inc
Y2 - 27 June 2025
ER -