Relational algebra byway of adjunctions

9Citations
Citations of this article
17Readers
Mendeley users who have this article in their library.

Abstract

Bulk types such as sets, bags, and lists are monads, and therefore support a notation for database queries based on comprehensions. This fact is the basis of much work on database query languages. The monadic structure easily explains most of standard relational algebra specifically, selections and projections allowing for an elegant mathematical foundation for those aspects of database query language design. Most, but not all: Monads do not immediately offer an explanation of relational join or grouping, and hence important foundations for those crucial aspects of relational algebra are missing. The best they can offer is cartesian product followed by selection. Adjunctions come to the rescue: Like any monad, bulk types also arise from certain adjunctions; we show that by paying due attention to other important adjunctions, we can elegantly explain the rest of standard relational algebra. In particular, graded monads provide a mathematical foundation for indexing and grouping, which leads directly to an efficient implementation, even of joins.

Cite

CITATION STYLE

APA

Gibbons, J., Henglein, F., Hinze, R., & Wu, N. (2018). Relational algebra byway of adjunctions. Proceedings of the ACM on Programming Languages, 2(ICFP). https://doi.org/10.1145/3236781

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free