首页> 外国专利> Query optimization for group-by extensions and distinct aggregate functions

Query optimization for group-by extensions and distinct aggregate functions

机译:分组扩展和不同聚合功能的查询优化

摘要

Techniques for query optimization for group-by extensions and distinct aggregate functions are provided. A query has an extended group-by clause with an extended group-by operator and a first set of group-by columns. The query has one or more distinct aggregate functions and one or more non-distinct aggregate functions. An initial subquery is constructed that generates a partially aggregated initial temporary (PAIT) table when executed. The initial subquery includes a GROUP BY clause with a second set of group-by columns that includes the first set of group-by columns of the extended group-by clause of the query and one or more columns specified by the one or more distinct aggregate functions. One or more subqueries are computed that compute groupings indicated by the extended group-by operator based on the PAIT table generated by the initial subquery.
机译:提供了用于按组扩展和不同的聚合函数进行查询优化的技术。查询具有扩展的group-by子句,扩展的group-by运算符和第一组group-by列。该查询具有一个或多个不同的聚合函数和一个或多个非不同的聚合函数。构造一个初始子查询,该子查询在执行时会生成部分聚合的初始临时(PAIT)表。初始子查询包含一个GROUP BY子句,该子句具有第二组“分组依据”列,该组第二组“分组依据”列包括查询的扩展group-by子句的第一组“分组依据”列,以及一个或多个由一个或多个不同集合指定的列职能。计算一个或多个子查询,这些子查询根据由初始子查询生成的PAIT表来计算由扩展group-by运算符指示的分组。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号