Skip to main navigation Skip to search Skip to main content

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

  • UVSQ

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

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, 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.

Original languageEnglish
Title of host publicationProceedings of the 4th ACM SIGMOD International Workshop on Data Systems Education
Subtitle of host publicationBridging Education Practice with Education Research, DataEd 2025
EditorsMichael Liut, Sourav S. Bhowmick, Abdussalam Alawini
PublisherAssociation for Computing Machinery, Inc
Pages6-10
Number of pages5
ISBN (Electronic)9798400719189
DOIs
Publication statusPublished - 28 Jul 2025
Event4th ACM SIGMOD International Workshop on Data Systems Education: Bridging Education Practice with Education Research, DataEd 2025, co-located with the ACM SIGMOD/PODS conference - Berlin, Germany
Duration: 27 Jun 2025 → …

Publication series

NameProceedings of the 4th ACM SIGMOD International Workshop on Data Systems Education: Bridging Education Practice with Education Research, DataEd 2025

Conference

Conference4th ACM SIGMOD International Workshop on Data Systems Education: Bridging Education Practice with Education Research, DataEd 2025, co-located with the ACM SIGMOD/PODS conference
Country/TerritoryGermany
CityBerlin
Period27/06/25 → …

Fingerprint

Dive into the research topics of 'Teaching SQL with Simplicity: A Shift from Relational Algebra to Canonical Databases'. Together they form a unique fingerprint.

Cite this