发明授权
US06850927B1 Evaluating queries with outer joins by categorizing and processing combinations of relationships between table records 有权
通过分类和处理表记录之间的关系组合来评估具有外连接的查询

  • 专利标题: Evaluating queries with outer joins by categorizing and processing combinations of relationships between table records
  • 专利标题(中): 通过分类和处理表记录之间的关系组合来评估具有外连接的查询
  • 申请号: US10153094
    申请日: 2002-05-21
  • 公开(公告)号: US06850927B1
    公开(公告)日: 2005-02-01
  • 发明人: Edward Hsu
  • 申请人: Edward Hsu
  • 申请人地址: US CA Redwood Shores
  • 专利权人: Oracle International Corporation
  • 当前专利权人: Oracle International Corporation
  • 当前专利权人地址: US CA Redwood Shores
  • 代理机构: Hickman Palermo Truong & Becker LLP
  • 代理商 John D. Henkhaus
  • 主分类号: G06F17/30
  • IPC分类号: G06F17/30
Evaluating queries with outer joins by categorizing and processing combinations of relationships between table records
摘要:
Aspects of the invention provide methods for rewriting and computing database queries that include outer join conditions, and for determining columns that satisfy a criteria. According to one aspect, a component relation key is assigned to each unique column in a first table and an aggregate relation key is generated for each record in a second table, wherein the aggregate relation key is based on one or more of the component relation keys corresponding to columns with non-null values from the second table. Distinct aggregate relation keys are determined, and an original query with an outer join is rewritten into at least a number of sub-queries equal to the number of distinct aggregate keys, wherein each sub-query includes a join condition based on each column represented by the respective distinct aggregate keys. Significantly, the combination of sub-queries is logically equivalent to the original query, but does not include outer join conditions. Therefore, a more efficient query is provided.
信息查询
0/0