发明名称 Method and system for joining database tables using compact row mapping structures
摘要 A method and system for efficiently joining database tables using compact row mapping structures is provided. In a preferred embodiment, a one-table row mapping structure is used to join two source tables while enforcing a restriction against a column of one of the source tables. Where the restricted column value satisfies the restriction, an indication is stored in the one-table mapping structure that the source table rows listed in that row of the index satisfy the restriction. When the source tables are joined by merging indices on the join columns of the two tables, only rows of the restricted source table for which an indication is stored in the one-table row mapping structure that it satisfies the restriction are merged. In a further embodiment, an arbitrary number of source tables are joined using a series of two-table row mapping structures, each constructed to represent the joining of two adjacent tables by mapping from rows of one of the adjacent table to rows of the other adjacent table. Each two-table row mapping structure is constructed by merging indices on the join columns of the two adjacent tables. When a row of the join result table is retrieved, a row of one of the source tables is selected, and all of the two-table mapping structures are used to identify a row of each of the other source tables to which the selected row is joined.
申请公布号 US5594898(A) 申请公布日期 1997.01.14
申请号 US19940218336 申请日期 1994.03.25
申请人 MICROSOFT CORPORATION 发明人 DALAL, KETAN;BELLEW, MATTHEW
分类号 G06F17/30;(IPC1-7):G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址