作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (16): 73-75. doi: 10.3969/j.issn.1000-3428.2009.16.025

• 软件技术与数据库 • 上一篇    下一篇

SQL聚集函数扩展

肖 杰1,谢 东2,曾玢石1   

  1. (1. 湖南第一师范学院信息技术系,长沙 410205;2. 湖南人文科技学院计算机科学技术系,娄底 417000)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-08-20 发布日期:2009-08-20

Extension of SQL Aggregation Functions

XIAO Jie1, XIE Dong2, ZENG Fen-shi1   

  1. (1. Information Technology Department, Hunan First Normal College, Changsha 410205;2. Department of Computer Science and Technology, Hunan University of Humanities, Science and Technology, Loudi 417000)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-08-20 Published:2009-08-20

摘要: 已经存在的SQL 聚集函数在计算百分比方面有明显的限制,提出2种水平与垂直百分比聚集函数用于计算百分比。新的聚集函数容易使用,有广泛的用途,可以被用于作为一种框架去研究百分比查询,能有效地生成SQL 代码。实验研究给出百分比聚集方法与SQL/OLAP聚集方法的执行性能,结果显示这2种方法在性能上比SQL/OLAP聚集方法有一定的改善。

关键词: 关系数据库, 结构化查询语言, 查询处理, 聚集函数, 百分比聚集

Abstract: Current SQL aggregate functions have evident limitations for computing percentages. This paper proposes two SQL aggregation functions for computing percentages. The two novel aggregation functions are easy to use, have wide applicability and can be efficiently evaluated. They may be used as a framework to study percentage queries and to generate efficient SQL code. Experiments compare the proposed percentage aggregations against queries using SQL/OLAP aggregations. Experimental results show that both proposed aggregations are significantly faster than existing SQL/OLAP aggregation functions.

Key words: relation database, SQL, query processing, aggregation functions, percentage aggregation

中图分类号: