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 条
  • [21] EXPRESSIVE POWER OF RELATIONAL ALGEBRA
    PAREDAENS, J
    INFORMATION PROCESSING LETTERS, 1978, 7 (02) : 107 - 111
  • [22] Induction of Relational Algebra Expressions
    Gillis, Joris J. M.
    Van den Bussche, Jan
    INDUCTIVE LOGIC PROGRAMMING, 2010, 5989 : 25 - +
  • [23] A NEW FORMALISM FOR RELATIONAL ALGEBRA
    LARSEN, KS
    SCHWARTZBACH, MI
    SCHMIDT, EM
    INFORMATION PROCESSING LETTERS, 1992, 41 (03) : 163 - 168
  • [24] A COMPUTATIONAL MODEL OF RELATIONAL ALGEBRA
    VOLFENGAGEN, VE
    YATSUK, VY
    PROGRAMMING AND COMPUTER SOFTWARE, 1985, 11 (05) : 298 - 309
  • [25] Extending relational algebra with similarities
    Hajdinjak, Melita
    Bierman, Gavin
    MATHEMATICAL STRUCTURES IN COMPUTER SCIENCE, 2012, 22 (04) : 686 - 718
  • [26] MANIPULATION OF EXPRESSIONS IN A RELATIONAL ALGEBRA
    STROET, JWM
    ENGMANN, R
    INFORMATION SYSTEMS, 1979, 4 (03) : 195 - 203
  • [27] RELATIONAL ALGEBRA MACHINE GRACE
    KITSUREGAWA, M
    TANAKA, H
    MOTOOKA, T
    LECTURE NOTES IN COMPUTER SCIENCE, 1983, 147 : 191 - 214
  • [28] On a fuzzy bipolar relational algebra
    Bosc, Patrick
    Pivert, Olivier
    INFORMATION SCIENCES, 2013, 219 : 1 - 16
  • [29] Reflective programming in the relational algebra
    VandenBussche, J
    vanGucht, D
    Vossen, G
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1996, 52 (03) : 537 - 549
  • [30] Polystore Mathematics of Relational Algebra
    Jananthan, Hayden
    Zhou, Ziqi
    Gadepally, Vijay
    Hutchison, Dylan
    Kim, Suna
    Kepner, Jeremy
    2017 IEEE INTERNATIONAL CONFERENCE ON BIG DATA (BIG DATA), 2017, : 3180 - 3189