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 条
  • [1] Relational Algebra by Way of Adjunctions
    Gibbons, Jeremy
    Henglein, Fritz
    Hinze, Ralf
    Wu, Nicolas
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2018, 2
  • [2] ADJUNCTIONS AND COMONADS IN DIFFERENTIAL ALGEBRA
    KEIGHER, WF
    PACIFIC JOURNAL OF MATHEMATICS, 1975, 59 (01) : 99 - 112
  • [3] ADJUNCTIONS AND COMONADS IN DIFFERENTIAL ALGEBRA
    KEIGHER, WF
    NOTICES OF THE AMERICAN MATHEMATICAL SOCIETY, 1975, 22 (01): : A99 - A99
  • [4] Towards relational fuzzy adjunctions
    Cabrera, Inma P.
    Cordero, Pablo
    Ojeda-Aciego, Manuel
    2017 IEEE INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS (FUZZ-IEEE), 2017,
  • [5] RELATIONAL ALGEBRA
    KAMEL, H
    BULLETIN OF THE AMERICAN MATHEMATICAL SOCIETY, 1952, 58 (03) : 391 - 391
  • [6] Analytical Algebra: Extension of Relational Algebra
    Peschel, Jakub
    Batko, Michal
    Zezula, Pavel
    DATABASE AND EXPERT SYSTEMS APPLICATIONS, DEXA 2022, PT II, 2022, 13427 : 284 - 290
  • [7] Expansion of the Relational Algebra
    Kis, Piroska B.
    Buza, Antal
    2009 7TH INTERNATIONAL SYMPOSIUM ON INTELLIGENT SYSTEMS AND INFORMATICS, 2009, : 111 - +
  • [8] A mobile relational algebra
    Morvan, Franck
    Hameurlain, Abdelkader
    MOBILE INFORMATION SYSTEMS, 2011, 7 (01) : 1 - 20
  • [9] Relational Algebra Interpreter
    Alkhalifah, Tamim
    de Vries, Denise
    PROCEEDINGS OF THE 2014 INTERNATIONAL CONFERENCE ON ADVANCED ICT, (ICAICTE 2014), 2014, : 4 - 9
  • [10] Relational algebra & Metakit
    Kelley, B
    DR DOBBS JOURNAL, 2004, 29 (12): : 65 - +