skip to main content
10.1145/3596673.3596978acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
short-paper

Relational Playground: Teaching the Duality of Relational Algebra and SQL

Published:23 June 2023Publication History

ABSTRACT

Students in introductory data management courses are often taught how to write queries in SQL. This is a useful and practical skill, but it gives limited insight into how queries are processed by relational database engines. In contrast, relational algebra is a commonly used internal representation of queries by database engines, but can be challenging for students to grasp. We developed a tool we call Relational Playground for database students to explore the connection between relational algebra and SQL.

References

  1. Abdussalam Alawini, Peilin Rao, Leyao Zhou, Lujia Kang, and Ping-Che Ho. 2022. Teaching Data Models with TriQL. In Proceedings of the 1st ACM SIGMOD International Workshop on Data Systems Education: Bridging Education Practice with Education Research, DataEd@SIGMOD 2022, 17 June 2022, Philadelphia, PA, USA, Efthimia Aivaloglou, George Fletcher, and Daphne Miedema (Eds.). ACM, New York, NY, USA, 16--21.Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Edmon Begoli, Jesús Camacho-Rodríguez, Julian Hyde, Michael J Mior, and Daniel Lemire. 2018. Apache Calcite: A foundational framework for optimized query processing over heterogeneous data sources. In Proceedings of the 2018 International Conference on Management of Data. ACM, New York, NY, USA, 221--230.Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Karen Collins Davis. 2022. Instructional Design for Teaching Relational Query Optimization to Undergraduates. In 1st International Workshop on Data Systems Education. ACM, New York, NY, USA, 44--50.Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Fabio Grandi, Federica Mandreoli, Riccardo Martoglia, and Wilma Penzo. 2017. A Relational Algebra for Streaming Tables Living in a Temporal Database World. In 24th International Symposium on Temporal Representation and Reasoning, TIME 2017, October 16--18, 2017, Mons, Belgium (LIPIcs, Vol. 90), Sven Schewe, Thomas Schneider, and Jef Wijsen (Eds.). Schloss Dagstuhl - Leibniz-Zentrum für Informatik, Wadern, Germany, 15:1--15:17.Google ScholarGoogle Scholar
  5. Philip J Guo. 2013. Online python tutor: embeddable web-based program visualization for cs education. In Proceeding of the 44th ACM technical symposium on Computer science education. ACM, New York, NY, USA, 579--584.Google ScholarGoogle Scholar
  6. Johannes Kessler, Michael Tschuggnall, and Günther Specht. 2019. RelaX: A webbased execution and learning tool for relational algebra. BTW 2019 P-289 (2019), 503--506.Google ScholarGoogle Scholar
  7. Zhengjie Miao, Sudeepa Roy, and Jun Yang. 2019. Explaining Wrong Queries Using Small Examples. In Proceedings of SIGMOD 2019, Peter A. Boncz, Stefan Manegold, Anastasia Ailamaki, Amol Deshpande, and Tim Kraska (Eds.). ACM, New York, NY, USA, 503--520.Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Thomas Neumann and Michael J. Freitag. 2020. Umbra: A Disk-Based System with In-Memory Performance. In CIDR 2020. www.cidrdb.org, Amsterdam, The Netherlands, 7 pages.Google ScholarGoogle Scholar
  9. Jun Yang. 2021. RA (radb): A relational algebra interpreter over relational databases. https://github.com/junyang/radbGoogle ScholarGoogle Scholar

Index Terms

  1. Relational Playground: Teaching the Duality of Relational Algebra and SQL

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in
          • Published in

            cover image ACM Conferences
            DataEd '23: Proceedings of the 2nd International Workshop on Data Systems Education: Bridging education practice with education research
            June 2023
            63 pages
            ISBN:9798400702075
            DOI:10.1145/3596673

            Copyright © 2023 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 23 June 2023

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • short-paper
          • Article Metrics

            • Downloads (Last 12 months)53
            • Downloads (Last 6 weeks)2

            Other Metrics

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader