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 条
  • [41] ADJUNCTIONS
    RYDEHEARD, DE
    LECTURE NOTES IN COMPUTER SCIENCE, 1986, 240 : 51 - 57
  • [42] SOLVING SPATIAL QUERIES BY RELATIONAL ALGEBRA
    LAURINI, R
    MILLERET, F
    AUTO CARTO 9 : NINTH INTERNATIONAL SYMPOSIUM ON COMPUTER-ASSISTED CARTOGRAPHY, 1989, : 426 - 435
  • [43] CONVERTING SQL QUERIES INTO RELATIONAL ALGEBRA
    DADASHZADEH, M
    STEMPLE, DW
    INFORMATION & MANAGEMENT, 1990, 19 (05) : 307 - 323
  • [44] A FUNCTIONAL PROCESSOR FOR THE RELATIONAL ALGEBRA ON A MICROCOMPUTER
    MERRETT, TH
    VANROSSUM, T
    SOFTWARE-PRACTICE & EXPERIENCE, 1986, 16 (11): : 987 - 1002
  • [45] RELATIONAL ALGEBRA OPERATIONS AND SIZES OF RELATIONS
    GARDY, D
    PUECH, C
    LECTURE NOTES IN COMPUTER SCIENCE, 1984, 172 : 174 - 186
  • [46] An ontology-extended relational algebra
    Bonatti, P
    Deng, Y
    Subrahmanian, VS
    PROCEEDINGS OF THE 2003 IEEE INTERNATIONAL CONFERENCE ON INFORMATION REUSE AND INTEGRATION, 2003, : 192 - 199
  • [47] Kernels over relational algebra structures
    Woznica, A
    Kalousis, A
    Hilario, M
    ADVANCES IN KNOWLEDGE DISCOVERY AND DATA MINING, PROCEEDINGS, 2005, 3518 : 588 - 598
  • [48] Type inference in the polymorphic relational algebra
    Van den Bussche, Jan
    Waller, Emmanuel
    Proceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, 1999, : 80 - 90
  • [49] IMPROVING USABILITY OF THE RELATIONAL ALGEBRA INTERFACE
    DADASHZADEH, M
    JOURNAL OF SYSTEMS MANAGEMENT, 1989, 40 (09): : 9 - 12
  • [50] Implementation of Relational Algebra Operations for Web
    Ikhsan, Rijal Fajriatul
    Hasbi, Muhammad
    2016 INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND CYBERNETICS, 2016, : 121 - 126