Relational Algebra by Way of Adjunctions

被引:4
|
作者
Gibbons, Jeremy [1 ]
Henglein, Fritz [2 ]
Hinze, Ralf [3 ]
Wu, Nicolas [4 ]
机构
[1] Univ Oxford, Dept Comp Sci, Oxford, England
[2] Univ Copenhagen, DIKU, Copenhagen, Denmark
[3] Univ Kaiserslautern, Fachbereich Informat, Kaiserslautern, Germany
[4] Univ Bristol, Dept Comp Sci, Bristol, Avon, England
基金
英国工程与自然科学研究理事会;
关键词
SQL; comprehension; adjunction; monad; graded monad;
D O I
10.1145/3236781
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页数:28
相关论文
共 50 条
  • [31] Cupid: Commitments in Relational Algebra
    Chopra, Amit K.
    Singh, Munindar P.
    PROCEEDINGS OF THE TWENTY-NINTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2015, : 2052 - 2059
  • [32] Relational algebra and equational proofs
    Fundam Inf, 1 (101):
  • [33] Learning System for Relational Algebra
    Hernandez-Rubio, Erika
    Rodriguez-Torres, Marco Antonio
    Vazquez-Santiago, Humberto
    Meneses-Viveros, Amilcar
    LEARNING AND COLLABORATION TECHNOLOGIES, LCT 2023, PT I, 2023, 14040 : 54 - 63
  • [34] A RELATIONAL ALGEBRA FOR PROPOSITIONAL LOGIC
    BLANNING, RW
    DECISION SUPPORT SYSTEMS, 1994, 11 (02) : 211 - 218
  • [35] Nested bitemporal relational algebra
    Tansel, Abdullah Uz
    Atay, Canan Eren
    Computer and Information Sciences - ISCIS 2006, Proceedings, 2006, 4263 : 622 - 633
  • [36] SCHEMA EVOLUTION AND THE RELATIONAL ALGEBRA
    MCKENZIE, E
    SNODGRASS, R
    INFORMATION SYSTEMS, 1990, 15 (02) : 207 - 232
  • [37] Quillen adjunctions induce adjunctions of quasicategories
    Mazel-Gee, Aaron
    NEW YORK JOURNAL OF MATHEMATICS, 2016, 22 : 57 - 93
  • [38] ADDING TIME DIMENSION TO RELATIONAL MODEL AND EXTENDING RELATIONAL ALGEBRA
    TANSEL, AU
    INFORMATION SYSTEMS, 1986, 11 (04) : 343 - 355
  • [39] NONUNIVERSAL ADJUNCTIONS
    KAPUT, JJ
    NOTICES OF THE AMERICAN MATHEMATICAL SOCIETY, 1969, 16 (03): : 587 - &
  • [40] Isbell Adjunctions and Kan Adjunctions via Quantale-Enriched Two-Variable Adjunctions
    Lili Shen
    Xiaoye Tang
    Applied Categorical Structures, 2022, 30 : 223 - 245