Patent №
US 5,548,754
Granted
1996-08-20
Filed 1995
Owner
INTERNATIONAL BUSINESS MACHINES CORPORATION
Lab
AI components
2
nlp · kr
Assignment
Recorded
Dataset
AIPD
2023_r1 edition
Application
08385177
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.
AI classification
Ownership
INTERNATIONAL BUSINESS MACHINES CORPORATION
assignment · 79240621
Assignors
PIRAHESH, MIR HAMID, LEUNG, TING YU, LOHMAN, GUY MARING, SHEKITA, EUGENE JON, SIMMEN, DAVID E.
On an employer assignment, the assignors are typically the inventors.