发明名称 System and method for transforming queries using window aggregation
摘要 A system and method transform queries with subqueries, using window aggregation. An optimizer in a relational database management system transforms queries to optimize their efficiency and speed. The method transforms queries that have a subquery, replacing the subquery with a window aggregation function. In the case of a correlated subquery, the window aggregation function is partitioned by a correlated column of a correlated table. All data in the main select clause, or outer block, of the query that was obtained through references to the correlated table is instead obtained through the new window aggregation subquery. By using window aggregation, the aggregation is performed at the same time as the selection of relevant data from the correlated table, thereby compiling all needed data in a single pass through the table or view. Reducing the number of times that tables or views are accessed reduces the computational demands of a query.
申请公布号 US7275056(B2) 申请公布日期 2007.09.25
申请号 US20030425343 申请日期 2003.04.29
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 CHENG QI;LIU LINQI;MA WENBIN;PIRAHESH MIR HAMID;ZUZARTE CALISTO P.
分类号 G06F7/00;G06F17/30 主分类号 G06F7/00
代理机构 代理人
主权项
地址