发明名称 Optimization of SQL queries using early-out join transformations of column-bound relational tables
摘要 A method and apparatus for optimizing SQL queries in a relational database management system uses early-out join transformations. An early-out join comprises a many-to-one existential join, wherein the join scans an inner table for a match for each row of the outer table and terminates the scan for each row of the outer table when a single match is found in the inner table. To transform a many-to-many join to an early-out join, the query must include a requirement for distinctiveness, either explicitly or implicitly, in one or more result columns for the join operation. Distinctiveness can be specified using the DISTINCT keyword in the SELECT clause or can be implied from the predicates present in the query. The early-out join transformation also requires that no columns of the inner table be referenced after the join, or if an inner table column is referenced after the join, that each referenced column be "bound". A referenced column can be bound in one of three ways: (1) an inner table column can be bound to a constant through an equality predicate, (2) an inner table column can be bound to an outer table column, or (3) an inner table column can be bound to a correlated value, wherein the correlated value originates outside the query block. In all three cases, an inner table column can be bound through the transitivity of equality predicates.
申请公布号 US5548758(A) 申请公布日期 1996.08.20
申请号 US19950463968 申请日期 1995.06.05
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 PIRAHESH, MIR H.;LEUNG, TING Y.;LOHMAN, GUY M.;SHEKITA, EUGENE J.;SIMMEN, DAVID E.
分类号 G06F17/30;(IPC1-7):G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址