首页> 外国专利> 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.
机译:扩展了外部联接运算符的语义,以允许将不同谓词应用于联接元组和反联接元组。为了取消嵌套查询块的嵌套,例如,将反联接元组与计数值零(而不是计数值零)关联。通过将内部查询转换为生成临时关系的第一非嵌套查询,并将外部查询块转换为接收预计算的临时关系的第二未嵌套查询,可以将内部查询块与外部查询块解除嵌套。当嵌套的内部查询具有将内部查询与外部查询的关系连接起来的等联接谓词和计数集合时,通过从内部查询中删除等联接谓词并放置相应的联合词来取消查询块的嵌套。 (左)外部查询谓词中的外部连接谓词项,对内部查询关系的连接属性的每个不同值执行计数汇总,并在外部查询中将不同谓词应用于连接和反连接元组这样,假设计数值为零,就可以评估反连接元组的谓词。

著录项

  • 公开/公告号US5412804A

    专利类型

  • 公开/公告日1995-05-02

    原文格式PDF

  • 申请/专利权人 ORACLE CORPORATION;

    申请/专利号US19920876393

  • 发明设计人 MURALI M. KRISHNA;

    申请日1992-04-30

  • 分类号G06F15/40;

  • 国家 US

  • 入库时间 2022-08-22 04:05:03

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号