Querying multiple features of groups in relational databases

被引:0
|
作者
Chatziantoniou, D
Ross, KA
机构
关键词
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Some aggregate and grouping queries are conceptually simple, but difficult to express in SQL. This difficulty causes both conceptual and implementation problems for the SQL-based database system. Complicated queries and views are hard to understand and maintain. Further, the code produced is sometimes unnecessarily inefficient, as we demonstrate experimentally using a commercial database system. In this paper, we examine a class of queries involving (potentially repeated) selection, grouping and aggregation over the same groups, and propose an extension of SQL syntax that allows the succinct representation of these queries. We propose a new relational algebra operation that represents several levels of aggregation over the same groups in an operand relation. We demonstrate that the extended relational operator can be evaluated using efficient algorithms. We describe. a translation from the extended SQL language into our algebraic language. We have implemented a preprocessor that evaluates our extended language on toe of a commercial database system. We demonstrate that on a variety of examples, our implementation improves performance over standard SQL representations of the same examples by orders of magnitude.
引用
收藏
页码:295 / 306
页数:12
相关论文
共 50 条
  • [41] Querying faceted databases
    Ross, KA
    Janevski, A
    SEMANTIC WEB AND DATABASES, 2005, 3372 : 199 - 218
  • [42] Discovering relational patterns across multiple databases
    Zhu, Xingquan
    Wu, Xindong
    2007 IEEE 23RD INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3, 2007, : 701 - +
  • [43] Querying graph databases
    Flesca, S
    Greco, S
    ADVANCES IN DATABSE TECHNOLOGY-EDBT 2000, PROCEEDINGS, 2000, 1777 : 510 - 524
  • [44] Querying Databases with Taxonomies
    Martinenghi, Davide
    Torlone, Riccardo
    CONCEPTUAL MODELING - ER 2010, 2010, 6412 : 377 - +
  • [45] On querying ontologies and databases
    Bulskov, H
    Knappe, R
    Andreasen, T
    FLEXIBLE QUERY ANSWERING SYSTEMS, PROCEEDINGS, 2004, 3055 : 191 - 202
  • [46] Querying multidimensional databases
    Cabibbo, L
    Torlone, R
    DATABASE PROGRAMMING LANGUAGES, 1998, 1369 : 319 - 335
  • [47] QUERYING OBJECT DATABASES
    LOOMIS, MES
    JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1994, 7 (03): : 56 - &
  • [48] Querying XML Databases
    de Sousa, AA
    Pereira, JL
    Carvalho, JA
    XXII INTERNATIONAL CONFERENCE OF THE CHILEAN COMPUTER SCIENCE SOCIETY, PROCEEDINGS, 2002, : 142 - 150
  • [49] QUERYING LOGICAL DATABASES
    VARDI, MY
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1986, 33 (02) : 142 - 160
  • [50] Querying inconsistent databases
    Greco, S
    Zumpano, E
    LOGIC FOR PROGRAMMING AND AUTOMATED REASONING, PROCEEDINGS, 2000, 1955 : 308 - 325