JPH03223965A - Inequality sign condition connection system for related data base system - Google Patents

Inequality sign condition connection system for related data base system

Info

Publication number
JPH03223965A
JPH03223965A JP2018238A JP1823890A JPH03223965A JP H03223965 A JPH03223965 A JP H03223965A JP 2018238 A JP2018238 A JP 2018238A JP 1823890 A JP1823890 A JP 1823890A JP H03223965 A JPH03223965 A JP H03223965A
Authority
JP
Japan
Prior art keywords
record
column
record number
nos
numbers
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
Application number
JP2018238A
Other languages
Japanese (ja)
Inventor
Takao Mugitani
麦谷 尊雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2018238A priority Critical patent/JPH03223965A/en
Publication of JPH03223965A publication Critical patent/JPH03223965A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To shorten the overall processing time by obtaining a pair of record Nos having different column values based on an assembly of record Nos and the pairs of record Nos. CONSTITUTION:A retrieving request input means 1 is provided together with a retrieving result output means 2, an inequality sign condition connection means 3, an equal sign condition connection means 4, a record No acquiring means 5, an input/output control means 6, a secondary storage 7, and a data base 8. Then a record No assembly 1 consisting of the Nos of all records included in a table 1 is obtained together with a record No assembly 2 consisting of the Nos of all record included in a table 2. The pairs of record Nos of tables 1 and 2 including the pairs of same values of columns 1 and 2. Based on these pairs of record Nos, a pair of record Nos including the unequal values of both columns 1 and 2 is obtained. As a result, the comparing frequency can be reduced between the values of columns 1 and 2. Then it is possible to shorten the processing time required for production of a pair of desired record Nos.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はデータベース中の表に格納してあるレコードを
レコード番号と呼ばれる識別子によって一意に識別する
関係型データベースシステムにおける不等号条件結合方
式に関し、特に利用者から表1と表2と表1のカラムで
あるカラム1と表2のカラムであるカラム2との指定を
受け、表1と表2のレコードで、カラム1の値とカラム
2の値が等しくない組み合わせのレコード番号の組を出
力する不等号条件結合方式に関する。
Detailed Description of the Invention (Field of Industrial Application) The present invention relates to an inequality conditional join method in a relational database system that uniquely identifies records stored in a table in a database by an identifier called a record number. When the user specifies table 1, table 2, column 1, which is a column in table 1, and column 2, which is a column in table 2, in the records of table 1 and table 2, the value of column 1 and the value of column 2 are specified. This paper relates to an inequality conditional join method that outputs sets of record numbers that are unequal.

(従来の技術) 利用者から指定された表1と表2のレコードで、カラム
1とカラム2との値が等しくない組み合わせのレコード
番号の組を出力する従来の方式は、次のようなものであ
る。
(Prior art) A conventional method for outputting a set of record numbers of records in Tables 1 and 2 specified by the user in which the values in column 1 and column 2 are not equal is as follows. It is.

まず、表1の先頭のレコードを読み込み、これに対して
表2のレコードを先頭から最後まで順次読み込み、表2
のレコードを一件読み込むごとに、表1のカレントレコ
ードのカラム1の値と表2のカレントレコードのカラム
2の値を比較して等しくない場合のみ表1と表2のカレ
ントレコードの組を出力する。同様の処理を、表1より
次のレコードを読み込むごとに繰り返すことによって、
表1と表2の全てのレコードの組み合わせに対してカラ
ム1の値とカラム2の値を比較する。
First, read the first record of Table 1, then read the records of Table 2 sequentially from the beginning to the end.
Each time a record is read, compare the value in column 1 of the current record in Table 1 with the value in column 2 of the current record in Table 2, and only if they are not equal, output the pair of current records in Table 1 and Table 2. do. By repeating the same process every time the next record is read from Table 1,
Compare the values in column 1 and column 2 for all combinations of records in Tables 1 and 2.

(発明が解決しようとする課題) カラム1とカラム2の値を比較するには、二次記憶装置
から表1と表2のレコードを読み込まなければならない
が、二次記憶装置における入出力処理の処理速度は、中
央処理装置の処理速度と比較して極めて遅い。従って、
カラム1とカラム2の比較の回数を減らせば、二次記憶
装置における入出力処理の回数が減少して全体の処理時
間を短縮することができる。
(Problem to be Solved by the Invention) In order to compare the values of columns 1 and 2, the records of Tables 1 and 2 must be read from the secondary storage device, but the input/output processing in the secondary storage device The processing speed is extremely slow compared to the processing speed of a central processing unit. Therefore,
By reducing the number of comparisons between columns 1 and 2, the number of input/output processes in the secondary storage device can be reduced, and the overall processing time can be shortened.

しかしながら、従来の方式では、全てのレコードの組み
合わせに対して比較を行っているから、目的のレコード
番号の組の作成に多くの時間がかかっていた。
However, in the conventional method, since all combinations of records are compared, it takes a lot of time to create a target set of record numbers.

(課題を解決するための手段) 本発明の関係型データベースシステムにおける不等号条
件結合方式は、 データベース中の表に格納してあるレコードをレコード
番号と呼ばれる識別子によって一意に識別する関係型デ
ータベースシステムにおいて、利用者から表1と表2と
表1カラムであるカラム1と表2のカラムであるカラム
2との指定を受け、表1と表2のレコードで、カラム1
の値とカラム2の値が等しくない組み合わせのレコード
番号の組を出力する不等号条件結合方式であって、前記
表1に含まれる全てのレコードのレコード番号から成る
レコード番号集合1と、前記表2に含まれる全てのレコ
ードのレコード番号から成るレコード番号集合2とを作
成するレコード番号取得手段と、 前記表1と前記表2のレコードで、前記カラム1の値と
前記カラム2の値が等しい組み合わせのレコード番号か
ら成るレコード番号組1を作成する等号条件結合手段と
、 前記レコード番号集合1と、前記レコード番号集合2と
、前記レコード番号組1とを基に、前記カラム1の値と
前記カラム2の値とが等しくない組み合わせのレコード
番号の組を作成する不等号条件結合手段と、 を有する。
(Means for Solving the Problems) The inequality conditional join method in the relational database system of the present invention has the following advantages: When the user specifies Table 1, Table 2, Column 1 which is a column of Table 1, and Column 2 which is a column of Table 2, in the records of Table 1 and Table 2, Column 1
This is an inequality conditional join method that outputs a set of record numbers in which the value of column 2 is not equal to the value of column 2. a record number acquisition means for creating a record number set 2 consisting of the record numbers of all records included in the table; and a combination of records in Table 1 and Table 2 in which the value in column 1 and the value in column 2 are equal. an equal sign condition combination means for creating a record number set 1 consisting of record numbers; and an inequality condition combination means for creating a set of record numbers that are not equal to the value of column 2.

(実施例) 次に、本発明を図面を参照して詳細に説明する。(Example) Next, the present invention will be explained in detail with reference to the drawings.

第1図は本発明の一実施例を示す概略ブロック図である
。本実施例は、検索要求入力手段1と検索結果出力手段
2と不等号条件結合手段3と等号条件結合手段4とレコ
ード番号取得手段5と入出力制御手段6と二次記憶装置
7とデータベース8とから構成されている。利用者は、
検索要求入力手段1を通じて表1、表2、カラム1およ
びカラム2の指定を行い、検索結果は検索結果出力手段
2を通じて出力される。等号条件結合手段4は、指定さ
れた表1と表2のレコードで、カラム1とカラム2との
値が等しい組み合わせのレコード番号の組を出力する手
段であり、カラム1またはカラム2に対して索引が構築
されていればその索引を利用し、索引が存在しない場合
には表1と表2をそれぞれカラム1とカラム2の値でソ
ートすることによってカラム1の値とカラム2の値が等
しい組み合わせのレコード番号の組を高速に作成する。
FIG. 1 is a schematic block diagram showing one embodiment of the present invention. This embodiment includes a search request input means 1, a search result output means 2, an inequality condition combination means 3, an equality condition combination means 4, a record number acquisition means 5, an input/output control means 6, a secondary storage device 7, and a database 8. It is composed of. The user is
Tables 1, 2, columns 1 and 2 are specified through the search request input means 1, and the search results are outputted through the search result output means 2. The equal sign condition combination means 4 is a means for outputting a set of record numbers in which the values of column 1 and column 2 are equal in the specified records of table 1 and table 2. If an index has been built, use that index; if no index exists, sort Tables 1 and 2 by the values in column 1 and column 2, respectively, so that the values in column 1 and column 2 are To quickly create sets of record numbers with equal combinations.

入出力制御手段6は、二次記憶装置7上に構築してある
データベース8から、指定された表のレコードを読み込
む処理を制御する。等号条件結合手段4、入出力制御手
段6、二次記憶装置7およびデータベース8は、全て通
常の関係型データベースシステムに用いられるものと同
様のものである。レコード番号取得手段5は、特定の表
に格納してある全レコードのレコード番号を取得し、レ
コード番号の集合を作成する。実際のデータベースシス
テムには、レコードを追加する際に値が省略されたカラ
ムに対してNULL値を格納し、このNULL値に対す
る比較は真でも偽でもなく不定とする3値論理を扱うシ
ステムが存在するが、このようなシステムにおいては、
指定されなカラムの値がNULL値でないレコードのレ
コード番号の集合を作成する。
The input/output control means 6 controls the process of reading records of a specified table from a database 8 built on a secondary storage device 7. The equality condition combination means 4, the input/output control means 6, the secondary storage device 7, and the database 8 are all similar to those used in a normal relational database system. The record number acquisition means 5 acquires the record numbers of all records stored in a specific table, and creates a set of record numbers. In actual database systems, there is a system that handles three-valued logic, which stores a NULL value for a column whose value is omitted when adding a record, and makes comparisons with this NULL value indeterminate, neither true nor false. However, in such a system,
Creates a set of record numbers for records where the value of an unspecified column is not a NULL value.

第2図は、不等号条件結合手段3の処理を示す流れ図で
ある。第2図を参照して不等号条件結合手段3の処理を
説明する。不等号条件結合手段3は、まず、利用者が検
索要求入力手段1を通じて指定した表1、表2、カラム
1およびカラム2を入力する(ステップ201)。次に
、表1、表2、カラム1およびカラム2を指定して等号
条件結合手段4を呼び出してカラム1とカラム2の値が
等しい組み合わせのレコード番号の組であるJを作成し
くステップ202)、Jを表1のレコード番号と表2の
レコード番号の優先順位で昇順に並べ変える(ステップ
203)。次に、レコード番号取得手段5を呼び出して
、表1に格納してある全レコードのレコード番号の集合
であるR1を作成しくステップ204)、さらに表2に
格納してある全レコードのレコード番号の集合であるR
2を作成しくステップ205) 、このうちR2をレコ
ード番号の昇順に並べ変える(ステップ206)。次に
、カラム1とカラム2の値が等しくない組み合わせのレ
コード番号の組を不等号条件結合結果として記憶する領
域であるKを空に初期化する(ステップ207)。最後
に、前述の各処理で作成したR1、R2およびJを基に
カラム1の値とカラム2の値が等しくない組み合わせの
レコード番号の組を作成し、これをKに追加するレコー
ド番号反転処理を行う。この処理は、目的のレコード番
号の組のうち、表1のレコード番号がJに含まれている
組み合わせを作成するレコード番号反転処理1(ステッ
プ208)と、表1のレコード番号がJに含まれていな
い組み合わせを作成するレコード番号反転処理2(ステ
ップ209)とからなり、それぞれの処理で作成したレ
コード番号の組がKに追加される。
FIG. 2 is a flowchart showing the processing of the inequality condition combination means 3. The processing of the inequality condition combination means 3 will be explained with reference to FIG. The inequality condition combination means 3 first inputs Table 1, Table 2, Column 1 and Column 2 specified by the user through the search request input means 1 (Step 201). Next, specify Table 1, Table 2, Column 1, and Column 2, call the equality condition combination means 4, and create J, which is a set of record numbers in which the values of Column 1 and Column 2 are equal.Step 202 ), J are rearranged in ascending order of priority according to the record numbers in Table 1 and the record numbers in Table 2 (step 203). Next, the record number acquisition means 5 is called to create R1, which is a set of record numbers of all records stored in Table 1 (step 204), and further the record numbers of all records stored in Table 2 are created. R is a set
2 is created (Step 205), and R2 is rearranged in ascending order of record number (Step 206). Next, K, which is an area for storing a set of record numbers in which the values of column 1 and column 2 are not equal, as a result of a combination of inequality conditions, is initialized to be empty (step 207). Finally, record number inversion processing creates a set of record numbers with unequal combinations of column 1 and column 2 values based on R1, R2, and J created in each of the above processes, and adds this to K. I do. This processing includes record number reversal processing 1 (step 208) that creates a combination in which the record number in Table 1 is included in J out of the set of target record numbers; The record number reversal process 2 (step 209) creates combinations that are not found, and the set of record numbers created in each process is added to K.

第3図は第2図の流れ図のステップ208のレコード番
号反転処理1の処理手順を示す流れ図である。第3図を
参照してレコード番号反転処理1の処理を説明する。レ
コード番号反転処理1は、まず、カラム1とカラム2の
値が等しい組み合わせのレコード番号の組であるJの先
頭のレコード番号の組を変数jに代入して(ステップ3
01)、jにカラム1とカラム2の値が等しい組み合わ
せのレコード番号の組が存在するか否かを判定しくステ
ップ302>、存在しない場合は処理を終了する。レコ
ード番号の組が存在する場合はjで示されるレコード番
号の組の中から表1のレコード番号を抽出してそれを変
数j1に代入する(ステップ303)。次に、jで示さ
れるレコード番号の組の中から表2のレコード番号を抽
出してそれを変数j2に代入する(ステップ303)。
FIG. 3 is a flowchart showing the processing procedure of record number inversion processing 1 in step 208 of the flowchart of FIG. The record number inversion process 1 will be explained with reference to FIG. Record number inversion processing 1 first assigns the first set of record numbers of J, which is a set of record numbers with equal values in column 1 and column 2, to variable j (step 3).
01), it is determined whether or not a set of record numbers with the same values in column 1 and column 2 exists in j. Step 302>; if not, the process ends. If a set of record numbers exists, the record number in Table 1 is extracted from the set of record numbers indicated by j and assigned to variable j1 (step 303). Next, the record number in Table 2 is extracted from the set of record numbers indicated by j and assigned to variable j2 (step 303).

次に、jlで示されるレコード番号を表1のレコード番
号の集合であるR1より削除する(ステップ305)。
Next, the record number indicated by jl is deleted from R1, which is the set of record numbers in Table 1 (step 305).

次に、表2のレコード番号の集合であるR2より先頭の
レコード番号を読み込んでこれを変数r2に代入する(
306)。次に、r2に代入してある表2のレコード番
号とj2に代入してある表2のレコード番号とを比較し
くステップ307.308) 、r2のレコード番号と
j2のレコード番号が等しい場合は表2の次のレコード
番号をR2より読み込んで変数r2に代入する(ステッ
プ309)。そして次のレコード番号の組をJより読み
込んで変数jに代入して(ステップ310)、表2のレ
コード番号であるr2が存在するか否かを判定しくステ
ップ311)、存在しない場合にはステップ302に戻
って処理を継続する。表2のレコード番号であるr2が
存在する場合はjにカラム1とカラム2の値が等しい組
み合わせのレコード番号の組が存在するか否かを判定し
くステップ312)、レコード番号の組が存在する場合
はそのレコードの番号の表1のレコード番号が前回のも
のと同じか否かを、現在のjlの値と比較することによ
り判定する(ステップ313)。レコード番号の組が存
在していない場合および表1のレコード番号が前回のも
異なる場合はjlで示される表1のレコード番号とr2
で示される表2のレコード番号の組を、不等号条件結合
結果を格納するKに追加する(ステップ315)。この
後、表2の次のレコード番号をR2より読み込んでr2
に代入しくステップ316)、次のレコード番号が存在
しなくなるまで(ステップ317)、ステップ315に
戻って処理を継続し、次のレコード番号が存在しなくな
るとステップ302の処理に戻る。ステップ310にお
いて読み込んだレコード番号の組が存在し、かつ表1の
レコード番号の値が前回のものと同じであった場合はj
2に表2の次のレコード番号を代入しくステップ314
)、ステップ307に戻って処理を継続する。ステップ
307.308のr2とj2の比較において、r2で示
される表2のレコ−ド番号がj2で示されるレコード番
号よりも大きかった場合は、ステップ310に進んでそ
れ以降はr2とj2が等しい場合と同様の処理を行う。
Next, read the first record number from R2, which is a set of record numbers in Table 2, and assign it to variable r2 (
306). Next, compare the record number of Table 2 assigned to r2 and the record number of Table 2 assigned to j2 (steps 307 and 308), and if the record number of r2 and j2 are equal, The next record number after 2 is read from R2 and assigned to variable r2 (step 309). Then, the next set of record numbers is read from J and assigned to variable j (step 310), and it is determined whether or not record number r2 in Table 2 exists (step 311), and if it does not exist, step The process returns to step 302 and continues the process. If r2, which is the record number in Table 2, exists, it is determined whether or not there is a record number set in j that has the same value in column 1 and column 2 (step 312), and the set of record numbers exists. If so, it is determined whether the record number in Table 1 of the record number is the same as the previous one by comparing it with the current value of jl (step 313). If the set of record numbers does not exist or if the record number in Table 1 is different from the previous record number, the record number in Table 1 indicated by jl and r2
The set of record numbers in Table 2 shown by is added to K that stores the inequality condition combination result (step 315). After this, read the next record number in Table 2 from R2 and
(step 316), the process returns to step 315 and continues processing until the next record number no longer exists (step 317), and when the next record number no longer exists, the process returns to step 302. If the set of record numbers read in step 310 exists and the value of the record number in Table 1 is the same as the previous one, j
Step 314: Assign the next record number of Table 2 to 2.
), the process returns to step 307 to continue the process. In the comparison of r2 and j2 in steps 307 and 308, if the record number in Table 2 indicated by r2 is larger than the record number indicated by j2, the process proceeds to step 310 and from then on, r2 and j2 are equal. Perform the same processing as in the case.

r2のレコード番号がj2のレコード番号よりも小さか
った場合は、jlで示される表1のレコード番号とr2
で示される表2のレコード番号の組を不等号条件結合結
果を格納するKに追加しくステップ318)、表2レコ
ード番号をR2より読み込んでr2に代入しくステップ
319)、表2のレコード番号であるr2が存在するか
否かを判定しくステップ320)、存在する場合はステ
ップ307の処理に戻り、存在しない場合はステップ3
10で次のレコード番号の組をJより読み込んでjに代
入し、ステップ311を経てステップ302に戻り、そ
れぞれ処理を継続する。
If the record number of r2 is smaller than the record number of j2, the record number of Table 1 indicated by jl and r2
Add the set of record numbers of Table 2 shown by to K that stores the inequality condition combination result (Step 318), read the Table 2 record number from R2 and assign it to r2 (Step 319), the record number of Table 2. It is determined whether or not r2 exists (step 320). If it exists, the process returns to step 307; if it does not exist, the process returns to step 3.
At step 10, the next set of record numbers is read from J and assigned to j, and the process returns to step 302 via step 311 to continue the processing.

第4図は、第2図の流れ図のステップ209のレコード
番号反転処理2の処理手順を示す流れ図である。第4図
を参照してレコード番号反転処理2の処理を説明する。
FIG. 4 is a flowchart showing the processing procedure of record number inversion processing 2 in step 209 of the flowchart of FIG. The record number inversion process 2 will be explained with reference to FIG.

レコード番号反転処理2はまず、R1に残っている表1
のレコード番号から2 先頭のレコード番号を読み込んで変数r1に代入しくス
テップ401)、表1のレコード番号であるrlが存在
するか否かを判定しくステップ402)、存在しない場
合は処理を終了する。表1のレコード番号であるrlが
存在する場合はR2に格納してある表2のレコード番号
から先頭のレコード番号を読み込んで変数r2に代入し
くステップ403) 、表2のレコード番号であるr2
が存在するか否かを判定しくステップ404)、存在す
る場合はrlで示される表1のレコード番号とr2で示
される表2のレコード番号の組を不等号条件結合結果を
格納するKに追加しくステップ405)、表2の次のレ
コード番号をR2より読み込んでステップ404に戻っ
て処理を継続する。
Record number reversal processing 2 first begins with table 1 remaining in R1.
Read the first record number from the record number 2 and assign it to variable r1 (step 401), determine whether the record number rl in Table 1 exists (step 402), and if it does not exist, end the process . If rl, which is the record number of Table 1, exists, read the first record number from the record numbers of Table 2 stored in R2 and assign it to variable r2 (step 403), r2, which is the record number of Table 2.
(step 404), and if so, add the pair of the record number of Table 1 indicated by rl and the record number of Table 2 indicated by r2 to K that stores the inequality condition combination result. In step 405), the next record number in Table 2 is read from R2, and the process returns to step 404 to continue the process.

ステップ404の判定において、表2のレコード番号で
あるr2が存在しない場合は表1の次のレコード番号を
R1より読み込んでrlに代入しくステップ407) 
、ステップ401に戻って処理を継続する。
In the judgment at step 404, if r2, which is the record number in Table 2, does not exist, the next record number in Table 1 is read from R1 and substituted into rl (Step 407).
, and returns to step 401 to continue the process.

最終的に処理が終了すると、不等号条件結合結果として
カラム1の値とカラム2の値が等しくない組み合わせの
レコードの組がKに格納される。
When the process is finally completed, a set of records in which the value of column 1 and the value of column 2 are not equal are stored in K as a result of the inequality condition combination.

(発明の効果) 本発明の不等号条件結合方式では、表1に含まれる全て
のレコードのレコード番号から成るレコード番号集合1
と、表2に含まれる全てのレコードのレコード番号から
成るレコード番号集合2と、カラム1の値とカラム2の
値が等しい組み合わせの表1と表2のレコード番号の組
を作成し、これらをもとにカラム1の値とカラム2の値
が等しくない組み合わせのレコード番号の組を作成する
(Effect of the invention) In the inequality conditional join method of the present invention, a record number set 1 consisting of the record numbers of all records included in Table 1 is used.
Create a record number set 2 consisting of the record numbers of all the records included in Table 2, and a set of record numbers from Tables 1 and 2 in which the values in column 1 and column 2 are equal. First, create a set of record numbers in which the value in column 1 and the value in column 2 are not equal.

カラム1とカラム2との値が等しい組み合わせのレコー
ド番号の組を出力する処理では、カラム1またはカラム
2に対して構築された索引を利用したり、また、索引が
存在しない場合には表1と表2をそれぞれカラム1とカ
ラム2の値でソートすることによりカラム1の値とカラ
ム2の値を比較する回数を減らすことが可能であるから
目的のレコード番号の組を作成するのに要する処理時間
を大きく短縮することができる。
In the process of outputting a set of record numbers with the same values in column 1 and column 2, an index built for column 1 or column 2 is used, or if an index does not exist, Table 1 is used. By sorting Table 2 and Table 2 by the values in Column 1 and Column 2, it is possible to reduce the number of times the values in Column 1 and Column 2 are compared, which is required to create the desired set of record numbers. Processing time can be greatly reduced.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例を示すブロック図、第2図は
不等号条件結合手段3の処理を示す流れ図、第3図は第
2図の流れ図のステップ208のレコード番号反転処理
1の処理手順を示す流れ図、第4図は第2図の流れ図の
ステップ209のレコード番号反転処理2の処理手順を
示す流れ図である。 1・・・検索要求入力手段、2・・・検索結果出力手段
、3・・・不等号条件結合手段、4・・・等号条件結合
手段、5・・・レコード番号取得手段、6・・・入出力
制御手段、7・・・二次記憶装置、8・・・データベー
ス。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flowchart showing the processing of the inequality condition combination means 3, and FIG. 3 is the processing of record number inversion processing 1 of step 208 in the flowchart of FIG. Flow chart showing the procedure. FIG. 4 is a flow chart showing the processing procedure of the record number inversion process 2 at step 209 in the flow chart of FIG. DESCRIPTION OF SYMBOLS 1... Search request input means, 2... Search result output means, 3... Inequality condition combination means, 4... Equal sign condition combination means, 5... Record number acquisition means, 6... Input/output control means, 7... secondary storage device, 8... database.

Claims (1)

【特許請求の範囲】 データベース中の表に格納してあるレコードをレコード
番号と呼ばれる識別子によって一意に識別する関係型デ
ータベースシステムにおいて、利用者から表1と表2と
表1のカラムであるカラム1と表2のカラムであるカラ
ム2との指定を受け、表1と表2のレコードでカラム1
の値とカラム2の値が等しくない組み合わせのレコード
番号の組を出力する不等号条件結合方式であって、 前記表1に含まれる全てのレコードのレコード番号から
成るレコード番号集合1と、前記表2に含まれる全ての
レコードのレコード番号から成るレコード番号集合2と
を作成するレコード番号取得手段と、 前記表1と前記表2のレコードで、前記カラム1の値と
前記カラム2の値が等しい組み合わせのレコード番号か
ら成るレコード番号組1を作成する等号条件結合手段と
、 前記レコード番号集合1と、前記レコード番号集合2と
、前記レコード番号組1とを基に、前記カラム1の値と
前記カラム2の値とが等しくない組み合わせのレコード
番号の組を作成する不等号条件結合手段と、 を有することを特徴とする関係型データベースシステム
における不等号条件結合方式。
[Scope of Claims] In a relational database system in which records stored in tables in a database are uniquely identified by an identifier called a record number, a user requests a table 1, a table 2, and a column 1 which is a column of table 1. Column 2 is specified as a column in Table 2, and column 1 is specified in records in Table 1 and Table 2.
This is an inequality conditional join method that outputs a set of record numbers of combinations in which the value of and the value of column 2 are not equal, the record number set 1 consisting of the record numbers of all records included in the table 1, and the table 2. a record number acquisition means for creating a record number set 2 consisting of the record numbers of all records included in the table; and a combination of records in Table 1 and Table 2 in which the value in column 1 and the value in column 2 are equal. an equal sign condition combination means for creating a record number set 1 consisting of record numbers; An inequality condition combination method in a relational database system, comprising: an inequality condition combination means for creating a set of record numbers whose combinations are not equal to the values of column 2.
JP2018238A 1990-01-29 1990-01-29 Inequality sign condition connection system for related data base system Pending JPH03223965A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018238A JPH03223965A (en) 1990-01-29 1990-01-29 Inequality sign condition connection system for related data base system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018238A JPH03223965A (en) 1990-01-29 1990-01-29 Inequality sign condition connection system for related data base system

Publications (1)

Publication Number Publication Date
JPH03223965A true JPH03223965A (en) 1991-10-02

Family

ID=11966101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018238A Pending JPH03223965A (en) 1990-01-29 1990-01-29 Inequality sign condition connection system for related data base system

Country Status (1)

Country Link
JP (1) JPH03223965A (en)

Similar Documents

Publication Publication Date Title
JPH03223965A (en) Inequality sign condition connection system for related data base system
JPH0644309A (en) Data base managing system
JPH05314188A (en) Retrieval processing system for data having range
JPH05165891A (en) Data registration/retrieval system of data base
JP2000123014A (en) System and method for retrieving data
JPH0452967A (en) And operation processing system for set file
JPH09330322A (en) Data retrieval device
JPH05307571A (en) Information retrieval system
JPS63149728A (en) Index forming device
JPH0628167A (en) Data and information manipulating device
JPH04178878A (en) Table record retrieving system
JPH02127742A (en) Idle area retrieving system
JPH0991268A (en) Totalization device
JPH02150920A (en) Retrieving system for maximum value data
JPH0546666A (en) Information retrieving device
JPH0232468A (en) Character string data retrieving system
JPH0667968A (en) Data management system in object direction
JPH04266138A (en) Update processing system
JPH06103312A (en) Retrieving device by finite element method
JPH0250262A (en) Information registering and retrieving device
JPS63172334A (en) Data processing system for data base system
JPH05233313A (en) Symbol table processing system
JPH02190946A (en) Keyword control system
JPH01173229A (en) Data base processor
JPH0667843A (en) Sorting processor