JPS59125461A - Outer join operation method in relational database - Google Patents
Outer join operation method in relational databaseInfo
- Publication number
- JPS59125461A JPS59125461A JP57234066A JP23406682A JPS59125461A JP S59125461 A JPS59125461 A JP S59125461A JP 57234066 A JP57234066 A JP 57234066A JP 23406682 A JP23406682 A JP 23406682A JP S59125461 A JPS59125461 A JP S59125461A
- Authority
- JP
- Japan
- Prior art keywords
- relation
- join
- result
- records
- execution
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24553—Query execution of query operations
- G06F16/24558—Binary matching operations
- G06F16/2456—Join operations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の技術分野〕
本発明は、リレーショナル・データベースにおけるアウ
タージョイン処理方式、特に2つのりレーションのアウ
タージョイン演算を通常のジョイン演算(等号ジョイン
)及び集合差、集合和演算の組合せとして処理するので
はなく、ジョイン対i リレーションをジョイン・フィ
ールドでソートした後、それらの2つのソート・リレー
ションのレコードを同時スキャンし、ジョイン・フィー
ルドの大小・相等判定によってアウタージョイン結果の
レコードを高速に求めることのできるジョイン処理方式
に関するものである。Detailed Description of the Invention [Technical Field of the Invention] The present invention relates to an outer join processing method in a relational database, and in particular an outer join operation of two relations to a normal join operation (equal join), set difference, and set union. Rather than processing them as a combination of operations, we sort the join-to-i relations by the join field, then simultaneously scan the records of those two sorted relations, and determine the outer join result by determining the size and equality of the join fields. The present invention relates to a join processing method that can obtain records at high speed.
従来のジョイン演算処理方式としては、等号ジョイン+
件を満たすレコードを2つのりレーションから抽出し結
合することしか行なわず、一方のりレーションにのみ存
在するレコードはジョイン結果に含まれない。アウター
ジョイン演算は双方のりレーションのジョイン・フィー
ルドに対応する値をもつレコード同士を等号ジョイン演
算同様に結合するとともに、片方のりレーションのジョ
イン・フィールドにしか存在しない値ンもつレコードも
結果のりレーションに含めることができる。The conventional join operation processing method is equal join +
It only extracts and joins records that satisfy the conditions from two relations, and records that exist only in one relation are not included in the join result. An outer join operation joins records that have values that correspond to the join fields of both relations in the same way as an equal join operation, and also combines records that have values that only exist in the join fields of one relation into the resulting relation. can be included.
このとき結合結果のあるフィールド(リレーションの属
性情報)は値をもちえないことが生ずるが未定義値(N
IL値)を補うのが普通である。At this time, a field with a join result (relation attribute information) may not have a value, but an undefined value (N
It is common to supplement the IL value.
アウタージョイン演算は等号ジョイン演算と集合差・集
合和演算7用いて処理可能である。以下にその定義式ン
示す。The outer join operation can be processed using the equality join operation and the set difference/set sum operation 7. The definition formula is shown below.
A(al、B2) リレーションAはフィールドal、a2からなる。A (al, B2) Relation A consists of fields al and a2.
B(bl、bl) リレーションBはフィールドbl、b2からなる。B (bl, bl) Relation B consists of fields bl and b2.
E(al、az、bl)=ACax=b1’] Bは、
ジョイ7−フィールドal、blで対応する値ンもつレ
コード同志だげン結合した結果、リレーションEはフィ
ールドal(またはbl)・a2sb2からなることを
示す。E(al, az, bl)=ACax=b1'] B is
Joy 7 - As a result of concatenating records with corresponding values in fields al and bl, relation E is shown to consist of fields al (or bl) and a2sb2.
アウタージョイン演算
0(al、 B2. bl)=E(al、 B2. b
l)L)A 1 (al、 B2.NIL)UBJ(
bt、N1.l)2ンたx L AlCa1e 82
)=A−g(jL1+ B2)B1(bl、bl)=A
−E(at、 bl)こNでしをヱ果合和演算、−は集
合差演′xケ表す。Outer join operation 0(al, B2.bl) = E(al, B2.b
l)L)A 1 (al, B2.NIL)UBJ(
bt, N1. l) 2 tanx L AlCa1e 82
)=A-g(jL1+B2)B1(bl, bl)=A
-E(at, bl) is the result of the N operation, and - represents the set difference 'x'.
第1図は従来のアウタージョイン演算処理の手続き乞示
す。第1図に示す従来方式によれば、E。FIG. 1 shows the procedure for conventional outer join calculation processing. According to the conventional method shown in FIG.
Al、Blという中間結果乞作成すること及び最終結果
Oン求めろために、E、 At、 Bl yg−それぞ
れスキャンしなげればならず、AとBから直接Oi作成
する場合に比較して、処理時間が大きくなる欠点がある
。A、Bリレーションのレコード数が増加すると共に処
理効率の低下の原因になる。In order to create the intermediate results Al and Bl and to obtain the final result O, it is necessary to scan each of E, At, and Blyg. Compared to the case where Oi is created directly from A and B, The disadvantage is that the processing time is long. As the number of records in the A and B relations increases, it causes a decrease in processing efficiency.
本発明はアウタージョイン演算処理において、ジョイン
対象のりレーションがソートされていることを前提とし
て、それらのりレーション乞同時にスキャンし2つのジ
ョインフィールドの値の大小・相等比較の判定にもとづ
いてレコード同士のアウタージョイン結合を行い結果の
りレーションを作成することにより、等号ジョイン演算
、集合演算の組合せで処理する従来方式に比べ、中間リ
レーションを作成せず、比較的高速な処理方式ン笑現す
ることZ目的としている。In the outer join calculation process, the present invention assumes that the join target relations are sorted, and simultaneously scans these relations and determines the outer join between records based on the magnitude and equality comparison of the values of the two join fields. Purpose: To create a relatively high-speed processing method by performing a join join and creating a result relation without creating intermediate relations, compared to the conventional method that processes using a combination of equality join operations and set operations. It is said that
そしてそのため、本発明のリレーショナル・データベー
スにおけるアウタージョイン演算方式は、複数の属性情
報21組のレコードにまとめ、同一種類のレコードの集
合を1つのりレーションとして扱い、複数のりレーショ
ンから構成されろリレーショナル・データベース乞有し
、複数個のりレーショノンジョイン・フィールドに関す
るアウタージョイン演算処理馨行ない結果馨りレーショ
ンとして求めろデータ処理システムにおいて、上記ジョ
インされるリレーションのジョイン・フィールドの値に
もとづいて昇順にレコードを配列したソート・リレーシ
ョンを作成するソート・リレーション作成過程を備える
と共に、複数のソート・リレ、ジョンの先頭レコードか
ら逐次ジョイン・フィールドの!乞抽出・比較し、その
大小・相等に対応して、アウタージョイン結果のレコー
ド7作成し、それχ結果のりレーションに挿入するアウ
タージョイン演算処理過程7有すること乞特徴とするも
のである。Therefore, the outer join calculation method in the relational database of the present invention combines multiple attribute information into 21 sets of records, treats a set of records of the same type as one relation, and creates a relational database composed of multiple relations. Obtain the result of outer join calculation on multiple relations non-join fields.In a data processing system, arrange the records in ascending order based on the values of the join fields of the relations to be joined. In addition to providing a sort relation creation process that creates a sort relation, multiple sort relations and sequential join fields from the first record of John! The present invention is characterized by an outer join operation processing step 7 for extracting and comparing results, creating an outer join result record 7 according to their size and equality, and inserting the records 7 into the χ result relation.
アウタージョイン演算処理は等号ジョイン演算処理方式
の拡張と考える。等号ジョイン演算処理は、ジョイン対
象りレーションンジョイン嶽フィールドでソートした後
、それらのソート・フィールド−yFJ時スギャンし、
等しい値をもつレコード対だけン抽出するが、一致しな
いレコードは読み飛ばす。抽出したレコード同士を結合
し、1つのレコードにして結果のりレーションに挿入す
る。Outer join calculation processing is considered to be an extension of the equality join calculation processing method. The equal sign join operation process involves sorting the join targets by the relation join field, then scanning those sort fields - yFJ,
Extract only pairs of records with equal values, but skip records that do not match. Combine the extracted records to create a single record and insert it into the resulting relation.
本発明ばアウタージョイン演算を実現する処理方式め具
体的な処理アルゴリズムン等号ジョイン演算の処理アル
ゴリズムの拡張によって考案したものである。第2図に
アウタージョイン演算処理の流れ図ン示−f′。第2図
において、記号は下記のような意味を持っている。According to the present invention, a processing method for realizing an outer join operation is devised by extending a processing algorithm for an equal join operation. FIG. 2 shows a flowchart of the outer join calculation process -f'. In Figure 2, the symbols have the following meanings.
tl、 t2
リレーションAのレコード・スキャン・ポインタ
r l、 r 2
リレーション早のレコード・スキャン・ポインタ
&1t 1
ポインタt1が現在指すりレーションA(1))ヨイン
・フィールドalQ値
ttl
ポインタt1が指すAのレコード
rx
ポインタr1が指すBのレコード
EOP !
スキャンの終了点
(NIL、 Lr 1 >
NIL値とレコードtrlkこの順に結合する。tl, t2 Record scan pointer of relation A r l, r 2 Early record scan pointer of relation Record rx Record EOP of B pointed to by pointer r1! Scan end point (NIL, Lr 1 > NIL value and record trlk are combined in this order.
アクタ−ジョイン演算処理では下記のような処理が行わ
れる。In the actor join calculation process, the following process is performed.
ステップ5O
11と12’ffリレーシヨンへの先頭レコードに設定
し、rlとr2’llリレーションBの先頭レコードに
設定する。Step 5O Set as the first record for relations 11 and 12'ff, and set as the first record of relation B for rl and r2'll.
ステップ810
t1=EOPで且つr1=EOPの条件Y満足している
か、否かン調べる。Yesのときは終了となり、N0O
)ときは、ステップ1】に移る。Step 810 Check whether conditions Y of t1=EOP and r1=EOP are satisfied. If Yes, it ends and N0O
), move to step 1].
ステ ッ フ゛ 5ll
t1=EOPで且つr1\EOPの条件乞満足している
か、否かン調べる。Yesりときはステラ1812に移
り、Noのときはステップ5134ろ。Step 5ll Check whether the conditions of t1=EOP and r1\EOP are satisfied. If Yes, go to Stella 1812, and if No, go to Step 5134.
ステップS12
<NIL、tr 1)vOに挿入し、rl==r+l、
即ちポインタr1ン進めろ。次にステツノ810に戻る
。Step S12 <NIL, tr 1) Insert into vO, rl==r+l,
In other words, advance the pointer r1. Next, return to Stetsuno 810.
ステップ513
t1\FOPで且つrl=EOPの条件を満足している
か、否か欠調べる。Yesのときはステラ7’814に
移り、NOのときはステップ820に移る。Step 513 Check whether the conditions of t1\FOP and rl=EOP are satisfied. If YES, the process moves to Stella 7'814, and if NO, the process moves to step 820.
ステップS]4
<ttl、NIj>ンOに挿入し、ts=tx+1、即
ちポインタt17f進める。次にステップ810に移る
。Step S] 4 <ttl, NIj> is inserted into O and advances ts=tx+1, that is, pointer t17f. Next, the process moves to step 810.
ステップ520 alLl=l)lylであるか、否かを調べる。Step 520 Check whether alLl=l)lyl.
Yesのときはステップ821に移り、Noのときはス
テップ8.22に移る。If Yes, the process moves to step 821, and if No, the process moves to step 8.22.
ステップS21
<ttl、trl”)ytOに挿入し、rl=rl+l
にし、次にステップ830に移る。Step S21 <ttl, trl") insert into ytO, rl=rl+l
and then moves to step 830.
ステップ522
altl>bl、yiであるか、否かを調べる。Yes
りときはステップ823に移り、NOのときは824に
移る。Step 522 Check whether altl>bl, yi. Yes
If yes, the process moves to step 823, and if NO, the process moves to 824.
ステップ823
<NIL、trl>’a’OK挿入し、r、=r、+l
とし、r2=r1とし、ステップ810に戻る。Step 823 <NIL, trl>'a' OK insert, r, = r, +l
Then, r2=r1, and the process returns to step 810.
ステツノ524
(tzx、NIL>乞Oに挿入し、11=11+1゜t
2=11とし、ステップ810に戻る。Stetsuno 524 (tzx, NIL> insert into O, 11=11+1゜t
2=11, and the process returns to step 810.
ステップ830
r1=EOPか否かン調べる。Yesのときは、ステッ
プS3]に移り、NOのときはステップ332に移る。Step 830 Check whether r1=EOP. If YES, the process moves to step S3], and if NO, the process moves to step 332.
ステップ531 71=t1+1とし、ステップ810に戻る。Step 531 71=t1+1 and return to step 810.
ステップ532
al/−1=blrlか、否か乞調べる。Yesのとき
はステップ833に移り、NOのときはステップ834
に移る。Step 532 Check whether al/-1=blrl. If YES, proceed to step 833; if NO, proceed to step 834.
Move to.
ステップ833
<t 11 、 t r 1>Y Oに挿入し、f1=
fl+1として、ステップ830に戻る。Step 833 Insert <t 11 , t r 1>Y O, f1=
fl+1, and the process returns to step 830.
ステップ834 jl=t1+1とする。Step 834 Let jl=t1+1.
ステップ535
z1=EOPか否か乞調べろYesりときはステップ3
6に移り、NOのときはステップS37に移る。Step 535 Check whether z1=EOP or not. If yes, step 3
If the answer is NO, the process moves to step S37.
ステップ836
<N I L 、 t r 1 >Y Oに挿入し、r
l=r+1とし、ステップSIOに戻る。Step 836 Insert <N I L , t r 1 >Y O and r
Set l=r+1 and return to step SIO.
ステップ537
altl=alt2であるか、否かン調べ、yesのと
きはステップ838に移り、NOのときはステップ33
9に移る。Step 537 Check whether altl=alt2 or not. If yes, proceed to step 838; if NO, proceed to step 33.
Move on to 9.
ステップ838
rl=r2.即ちスキャン・ポインタr I Y −1
する。次忙ステップ832に移る。Step 838 rl=r2. That is, scan pointer r I Y −1
do. The process moves to the next busy step 832.
ステップ839
t2=f1會r2=f]とし、次にステップs20に戻
、。 。Step 839 t2=f1 meeting r2=f], and then return to step s20. .
第3図は本発明の1実施例の構成乞示すものである。第
3図において、1はリレーショナル・データベース処理
機構、2はリレーショナル演算制御部、3は解釈実行部
、4はデータ・アクセス部、5は問い合わせ解、′折部
、6は実行制御部、7はりダクンヨンソ、−ト部、8は
ジョイン実行部、9は等号ジョイン笑行部、10はアウ
タージョイン実行部、11はデータベース、12はデー
タ辞書、】3はリレーションtそれぞれ示している。FIG. 3 shows the structure of one embodiment of the present invention. In FIG. 3, 1 is a relational database processing mechanism, 2 is a relational calculation control unit, 3 is an interpretation execution unit, 4 is a data access unit, 5 is a query solution, a folding unit, 6 is an execution control unit, and 7 is a beam 8 is a join execution section, 9 is an equal sign join execution section, 10 is an outer join execution section, 11 is a database, 12 is a data dictionary, and ]3 is a relation t.
リレーショナル・データベース処理機m1は、リレーシ
ョナル演算制御部2、解釈実行部3およびデータ・アク
セス部4乞有している。リレーショナル演算制御部2は
問い合せ解析部5および実行制御部6から構成され、解
析実行部3はリダクション・ノート部7およびジョイン
実行部8から構成されている。ジョイン実行部8は、等
号ジョイン実行部9とアウタージョイン実行部10とン
有している。データベース1】は、データ辞書】2と複
数のりレーション13を有している。The relational database processor m1 includes a relational calculation control section 2, an interpretation execution section 3, and a data access section 4. The relational calculation control section 2 is composed of a query analysis section 5 and an execution control section 6, and the analysis execution section 3 is composed of a reduction note section 7 and a join execution section 8. The join execution unit 8 includes an equal sign join execution unit 9 and an outer join execution unit 10. The database [1] has a data dictionary [2] and a plurality of entries 13.
第3図において、リレーショナル・データベース処理機
構1はユーザの問い合せ(リレーショナル演算処理)ン
受付はリレーショナル演算制御部2に渡丁。リレーショ
ナル演算制御部2は、問い合せ解析部5で問い合せの構
文と意味の正当性欠チェックする。実行制御部6は、正
しい問い合せからリレーショナル演算7分類・抽出し、
その実行手順乞決定する。実行計画の立てられた問い合
せは、解釈実行部3に渡され、実行される。解釈実行部
3は、データ・アクセス部4乞介してデータベースj1
の中のりレーションの属性情報ヲ管理するデータ辞書1
2を参照したり、笑データ馨もつ複数のりレーション1
3ンアクセスしたりてる。リダクション・ソートやジョ
イン処理の結果のりレーションを作成したり、対象りレ
ーションをスキャン丁石基本機能は、データ・アクセス
部4がその手段乞提供する。In FIG. 3, the relational database processing mechanism 1 passes user inquiries (relational calculation processing) to the relational calculation control unit 2. The relational arithmetic control unit 2 uses a query analysis unit 5 to check the syntax and meaning of the query for validity. The execution control unit 6 classifies and extracts seven relational operations from the correct query,
The implementation procedure will be determined. The query for which an execution plan has been established is passed to the interpretation execution unit 3 and executed. The interpretation execution unit 3 accesses the database j1 via the data access unit 4.
Data dictionary 1 that manages the attribute information of the rations in
2 or refer to multiple references with lol data 1
3 accesses. The data access unit 4 provides the basic functions of creating a relation as a result of reduction/sorting or joining processing, or scanning a target relation.
第4図はアウタージョイン演算を含む問い合せの具体例
7示す。この問い合せは、従業員り給与リレーションか
ら月給30万円以上の従業員の氏名と給料ケ求めろ一万
、所属リレーションからマ管理部マ又はマ技術部マで働
く従業員を求め、双方の結果を氏名をジョイン・フィー
ルドとしてアウタージョイン演算を行うべきことン意味
している。FIG. 4 shows a seventh specific example of a query including an outer join operation. This inquiry asks for the names and salaries of employees with a monthly salary of 300,000 yen or more from the employee/salary relation, and asks for employees who work in management department (ma) or engineering department (ma) from the affiliation relationship, and returns the results of both. This means that an outer join operation should be performed using the name as the join field.
第5図は、具体的なりレーションに対し第4図の問い合
せを行った場合における解釈実行部3が処理する内容と
、処理結果の中間リレーションと、最終結果の所属−給
与リレーション乞説明図的に表わしたものである。シス
テムはりダクション・ソート部7において給与りレーシ
ョンと所属リレーションからそれぞれの制限条件ン満す
レコードだIrjyx抽出し、氏名フィールドの値で昇
順にソートーシた後そゆれぞれの中間リレーションAお
よびBン作成する。また、問い合せ中に複数のりレーシ
ョンに対する等号ジョイン演算を含むときジョイン実行
部8の等号ジョイン笑行部9がジョイン演算結果暑中間
リレーションとして作成する。さらに中間リレーション
A、Hに対してアウタージョイン実行部】0が第2図に
示した演算アルゴリズムに従って、アウタージョイン処
理7行ない最終結果である給与所属リレーションン作成
する。FIG. 5 is an explanatory diagram of the content processed by the interpretation execution unit 3 when the query shown in FIG. It is expressed. The system extraction/sorting unit 7 extracts Irjyx records that satisfy each restriction condition from the salary relation and affiliation relation, sorts them in ascending order by the value of the name field, and then creates intermediate relations A and B for each. do. Further, when an inquiry includes an equal sign join operation for a plurality of relations, the equal sign join processing section 9 of the join execution section 8 creates a join operation result as a hot middle relation. Furthermore, the outer join execution unit [0] performs seven outer join processes for the intermediate relations A and H according to the arithmetic algorithm shown in FIG. 2, and creates the salary affiliation relation which is the final result.
本発明は等号ジョイン演算の処理アルゴリズムの拡張と
して、アウタージョイン演算処理7行うものであり、基
本的手段の1つと考えてよい。The present invention performs outer join operation processing 7 as an extension of the processing algorithm for equal sign join operations, and can be considered as one of the basic means.
本発明では2個のりレーションに対するアウタージョイ
ン演Xyxスキャン、ジョインフィールド値の大小比較
、NIL値とレコードの結合処理で達成している。ル(
メ3)個のりレーションに対するアウタージョイン演算
は本発明による2個のりレーションに対するアルゴリズ
ムの繰返し適用で容易に達成できる。In the present invention, this is achieved by outer join operation Xyx scan for two relations, comparison of join field values, and merging of NIL values and records. le (
(3) The outer join operation for two rotations can be easily achieved by repeatedly applying the algorithm according to the present invention to two rotations.
以上の説明から明らかなように、本発明によれば、ゴ等
号ジョイン演算処理で取り出せないレコード(ジョイン
・フィールド値が片方のりレーションにしかないような
レコード〕も抽出できリレーショナル・データベースZ
使うユーザに大変な便宜を与えうるアウタージョイン演
算処理乞提供する。またアウタージョイン演算自身は等
号ジョイン演算、集合演算(相と差〕によって処理可能
であるが、そのような万代は余分の中間リレーションと
それらのスキャンを複数回必要とし処理速度ン早めろこ
とができない。、本方式によれば、2っのリレーション
の同時スキャンとジョインフィールドの大小比較及びN
IL値・レコード同士の結合処理のみで実現できる。等
号ジョイン演算処理との差はNIL値・レコードの結合
処理の有無だけである。以上の理由で本発明によれば、
従来方式に比べ格段に処理速度ン早めることができる効
果がある。As is clear from the above explanation, according to the present invention, it is possible to extract records that cannot be retrieved by the equal sign join calculation process (records where the join field value is only in one relation).
To provide outer join calculation processing that can provide great convenience to users. In addition, the outer join operation itself can be processed by an equal join operation or a set operation (phase and difference), but such operations require extra intermediate relations and scanning them multiple times, which may speed up the processing. According to this method, simultaneous scanning of two relations, size comparison of join fields, and N
This can be achieved only by combining IL values and records. The only difference from the equal sign join operation process is the presence or absence of NIL value/record join processing. According to the present invention for the above reasons,
This has the effect of significantly increasing processing speed compared to conventional methods.
第1図は従来方式によるアウタージョイン演算処理方式
乞説明する図、第2図は本発明におけるアウタージョイ
ン演算処理方式乞説明する図、第3図は本発明の具体的
−実施例7示すシステム構成図、第4図はアウタージョ
イン演算処理Z含む問い合せの具体例7示す図、第5図
は問い合せに対する解釈芙行処理の流れ図である。
1・・・リレーショナル・データベース処理機構、2・
・・リレーショナル演算制御部、3・・・解釈実行部、
4・・・データ・アクセス部、5・・・問い合わせ解析
部、6・・・実行制御部、7・・・リダクションソート
部、8・・・ジョイン実行部、9・・・等号ジョイン実
行部、】0・・・アウタージョイン実行部、11・・・
データベース、12・・・データ辞書、】3・・・リレ
ーション。
特許出願人 富士通株式会社
代理人弁理士 京 谷 四 部
太1 図
〉[2図(イ)
太5圀FIG. 1 is a diagram illustrating a conventional outer join calculation processing method, FIG. 2 is a diagram illustrating an outer join calculation processing method according to the present invention, and FIG. 3 is a system configuration showing a specific embodiment 7 of the present invention. 4 is a diagram showing a specific example 7 of a query including outer join operation processing Z, and FIG. 5 is a flowchart of an interpretation process for the query. 1... Relational database processing mechanism, 2...
... Relational calculation control unit, 3... Interpretation execution unit,
4... Data access section, 5... Query analysis section, 6... Execution control section, 7... Reduction sort section, 8... Join execution section, 9... Equal sign join execution section , ]0... Outer join execution part, 11...
Database, 12...Data dictionary, ]3...Relation. Patent Applicant Fujitsu Ltd. Representative Patent Attorney Yotsuta Kyotani Figure 1 [Figure 2 (A) Figure 5]
Claims (1)
レコードの集合乞1つのりレーションとして扱い、複数
のりレーションから構成されるリレーショナル・データ
ベースを有し、複数個のりレーションをジョイン・フィ
ールドに関するアクタ−ジョイン演算処理を行ない結果
をリレーションとして求めるデータ処理システムにおい
て、上記ジョインされるリレーションのジョイン・フィ
ールドの値にもとづいて昇順にレコードを配列したソー
ト・リレーションを作成するソート・リレーション作成
過程ンそなえると共に、複数のノート・リレーションの
先頭レコードから逐次ジョイン・フィールドの値を抽出
・比較し、その大小・相等に対応して、アウタージョイ
ン結果のレコードを作成し、それを結果のりレーション
に挿入するアウタージョイン演算処理過程を有すること
を特徴とするリレーショナル・データベースにおけるア
ウタージョイン処理方式。It collects multiple attribute information into 21 sets of records, treats a collection of records of the same type as one relation, has a relational database consisting of multiple relations, and performs actor joins on join fields. In a data processing system that performs arithmetic processing and obtains the result as a relation, it has a sort relation creation process that creates a sort relation in which records are arranged in ascending order based on the values of the join fields of the relations to be joined, and also includes An outer join calculation process that sequentially extracts and compares the join field values from the first record of the note relation, creates an outer join result record according to their size, equality, and inserts it into the result relation. An outer join processing method in a relational database characterized by having processes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57234066A JPS59125461A (en) | 1982-12-30 | 1982-12-30 | Outer join operation method in relational database |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57234066A JPS59125461A (en) | 1982-12-30 | 1982-12-30 | Outer join operation method in relational database |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS59125461A true JPS59125461A (en) | 1984-07-19 |
Family
ID=16965050
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57234066A Pending JPS59125461A (en) | 1982-12-30 | 1982-12-30 | Outer join operation method in relational database |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS59125461A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0475134A (en) * | 1990-07-17 | 1992-03-10 | Sharp Corp | File managing device |
JPH07141443A (en) * | 1993-11-19 | 1995-06-02 | Pfu Ltd | Batch automatic update method for BOM files |
US5551031A (en) * | 1991-08-23 | 1996-08-27 | International Business Machines Corporation | Program storage device and computer program product for outer join operations using responsibility regions assigned to inner tables in a relational database |
WO2009019930A1 (en) * | 2007-08-07 | 2009-02-12 | Fujitsu Broad Solution & Consulting Inc. | Database management program and database management device |
-
1982
- 1982-12-30 JP JP57234066A patent/JPS59125461A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0475134A (en) * | 1990-07-17 | 1992-03-10 | Sharp Corp | File managing device |
US5794042A (en) * | 1990-07-17 | 1998-08-11 | Sharp Kk | File management apparatus permitting access to portions of a file by specifying a data structure identifier and data elements |
US5551031A (en) * | 1991-08-23 | 1996-08-27 | International Business Machines Corporation | Program storage device and computer program product for outer join operations using responsibility regions assigned to inner tables in a relational database |
US5557791A (en) * | 1991-08-23 | 1996-09-17 | International Business Machines Corporation | Outer join operations using responsibility regions assigned to inner tables in a relational database |
JPH07141443A (en) * | 1993-11-19 | 1995-06-02 | Pfu Ltd | Batch automatic update method for BOM files |
WO2009019930A1 (en) * | 2007-08-07 | 2009-02-12 | Fujitsu Broad Solution & Consulting Inc. | Database management program and database management device |
JP2009042869A (en) * | 2007-08-07 | 2009-02-26 | Fujitsu Broad Solution & Consulting Inc | Database management program and database management apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Berzal et al. | TBAR: An efficient method for association rule mining in relational databases | |
Hayne et al. | Multi-user view integration system (MUVIS): An expert system for view integration | |
US6301575B1 (en) | Using object relational extensions for mining association rules | |
Kumar et al. | Extracting large-scale knowledge bases from the web | |
EP0070119B1 (en) | Join operation processing system in relational model | |
US6219662B1 (en) | Supporting database indexes based on a generalized B-tree index | |
US6947934B1 (en) | Aggregate predicates and search in a database management system | |
US5842208A (en) | High performance recover/build index system by unloading database files in parallel | |
ZA200100187B (en) | Value-instance-connectivity computer-implemented database. | |
JP3452531B2 (en) | Method and system for data mining | |
US6976015B2 (en) | Method for extracting data from a relational database using a reduced query | |
Shyu et al. | Generalized affinity-based association rule mining for multimedia database queries | |
JPH07104871B2 (en) | Join processing method in relational database | |
JPS59125461A (en) | Outer join operation method in relational database | |
US20060074950A1 (en) | Apparatus and method for parametric group processing | |
JP2002534741A (en) | Method and apparatus for processing semi-structured text data | |
Wellman | How to use SAS to study egocentric networks | |
Shoshani | CABLE: a language based on the entity-relationship model | |
Saraee et al. | Easyminer: Data mining in medical databases | |
EP1700095A2 (en) | System and method for generating custom hierarchies in an analytical data structure | |
JP2001142885A (en) | Query SQL generation device by business name designation | |
Xingjian | A database design method for finite element analysis | |
Hartzman et al. | A relational approach to querying data streams | |
Nippl et al. | Accelerating Profiling Services by Parallel Database Technology | |
JP3066836B2 (en) | High-speed access method in knowledge base system |