首页>
外国专利>
Extending the semantics of the outer join operator for un-nesting queries to a data base
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.
展开▼