发明名称 Extending the semantics of the outer join operator for un-nesting queries to a data base
摘要 The semantics of the outer join operator are extended to permit the application of different predicates to the join tuples and the anti-join tuples. For un-nesting of nested query blocks, the anti-join tuples, for example, are associated with a count value of zero instead of a count value of null. An inner query block is un-nested from an outer query block by converting the inner query to a first un-nested query generating a temporary relation and converting the outer query block to a second un-nested query receiving the precomputed temporary relation. When the nested inner query has an equi-join predicate joining a relation of the inner query to an outer query and a count aggregate, the query blocks are un-nested by removing the equi-join predicate from the inner query and placing a corresponding conjunctive (left) outerjoin predicate term in the predicate of the outer query, performing the count aggregate for each distinct value of the joining attribute of the relation of the inner query, and in the outer query applying different predicates to the joining and anti-joining tuples such that the predicate of the anti-joining tuples is evaluated assuming a count value of zero.
申请公布号 US5412804(A) 申请公布日期 1995.05.02
申请号 US19920876393 申请日期 1992.04.30
申请人 ORACLE CORPORATION 发明人 KRISHNA, MURALI M.
分类号 G06F17/30;(IPC1-7):G06F15/40 主分类号 G06F17/30
代理机构 代理人
主权项
地址