JPH07295993A - System for retrieving relational record - Google Patents

System for retrieving relational record

Info

Publication number
JPH07295993A
JPH07295993A JP6081232A JP8123294A JPH07295993A JP H07295993 A JPH07295993 A JP H07295993A JP 6081232 A JP6081232 A JP 6081232A JP 8123294 A JP8123294 A JP 8123294A JP H07295993 A JPH07295993 A JP H07295993A
Authority
JP
Japan
Prior art keywords
record
search
key
file
key conversion
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
JP6081232A
Other languages
Japanese (ja)
Inventor
Hideaki Ishimatsu
英章 石松
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 Solution Innovators Ltd
Original Assignee
NEC Software Kyushu Ltd
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 Software Kyushu Ltd filed Critical NEC Software Kyushu Ltd
Priority to JP6081232A priority Critical patent/JPH07295993A/en
Publication of JPH07295993A publication Critical patent/JPH07295993A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To provide the relational record retrieval system in which a relational record is easily added or deleted and the efficiency of the retrieval processing is improved without waste of a memory area. CONSTITUTION:The system relates to a retrieval system provided with a database 1 comprising plural database files 1a, 1b,..., 1n and a retrieval means 3 retrieving the database 1 according to a command form an entry device 2. Furthermore, the system is provided with a key conversion file 4 storing a relational key conversion table to directly access a relational record from a retrieved data record, a relational record retrieval means 5 retrieving the relational record by referencing the key conversion file 4 started from the retrieval means 3 and a conversion table registration means 6 generating a relational key conversion table to a specific retrieval condition by a command from the user and storing the table to the key conversion file 4. A relational record is retrieved in a short time by generating the relational key conversion table with respect to the relational record retrieval condition used frequently.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は関連レコード検索方式に
関し、特に検索して得られた一つのデータレコードから
関連のある他のデータレコードを更に再検索するための
関連レコード検索方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a related record search method, and more particularly to a related record search method for re-searching another related data record from one data record obtained by searching.

【0002】[0002]

【従来の技術】データベースシステムを利用した業務処
理において、ある一つのデータベースファイルから検索
したデータレコード(以下、起動レコードと呼ぶ)の内
容により、これと関連のある別のデータレコード(以
下、関連レコードと呼ぶ)を同一または他のデータベー
スファイルから更に再検索するという関連レコード検索
処理が必要となる場合が少なくない。
2. Description of the Related Art In a business process using a database system, depending on the content of a data record (hereinafter referred to as a start record) retrieved from a certain database file, another data record (hereinafter referred to as a related record) related thereto It is often the case that a related record search process of further searching again from the same or another database file is required.

【0003】このような関連レコードを検索する場合の
基本的な方法は、与えられた再検索の検索条件に従っ
て、指定された同一または他のデータベースファイル
(以下、関連ファイルと呼ぶ)からデータレコードを順
次読み込み、読み込んだすべてのデータレコードの特定
のデータ項目の内容(データ値)を起動レコードの特定
のデータ項目の内容(データ値)と比較し、この比較結
果によって関連レコードを決定し抽出するものである。
この方法は、関連ファイルのすべてのデータレコードを
読み込んで起動レコードとの比較を行うため、検索処理
に時間がかかるという欠点がある。
A basic method for retrieving such a related record is to retrieve a data record from the same or another designated database file (hereinafter referred to as a related file) according to a given re-retrieval retrieval condition. Sequentially read and compare the contents (data value) of a specific data item of all read data records with the contents (data value) of a specific data item of the start record, and determine and extract the related record based on this comparison result Is.
This method has a disadvantage in that the search process takes time because all the data records of the related file are read and compared with the start record.

【0004】上述した関連レコード検索の処理効率を上
げる方法として、従来から、起動レコードのデータ項目
の一つとして、関連レコードを一意に特定できるキー値
(主検索キー項目のデータ値)又は格納位置情報を格納
するデータ項目を持つ方法が知られている。この方法に
よれば、そのデータ項目を指定することにより、必要と
する関連レコードを直接抽出できるため、検索処理の時
間が短縮され処理効率が改善される。
As a method of increasing the processing efficiency of the related record search described above, conventionally, as one of the data items of the start record, a key value (data value of the main search key item) or a storage position that can uniquely identify the related record. Methods are known for having data items that store information. According to this method, the required related record can be directly extracted by designating the data item, so that the search processing time is shortened and the processing efficiency is improved.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、起動レ
コードのデータ項目としてキー値や格納位置情報などの
関連レコード識別情報を持つ上述の方法は、関連レコー
ドの追加や削除などの変更を行う際には、起動レコード
の該当するデータ項目のデータ値を変更する必要があ
る。更に、当初の設計範囲を超えて関連レコード数や種
類が増加した場合には、起動レコードを格納しているデ
ータベースファイル全体を再編成して業務処理プログラ
ムを修正することも必要となり、保守管理に多くの作業
工数を必要とする問題点がある。このような再編成を避
けるためには、当初から関連レコード検索のために必要
なデータ量の将来増を大きく想定して十分なファイル領
域を確保して置けばよいが、全体として大きな無駄が発
生することになる。
However, the above method having related record identification information such as the key value and the storage position information as the data item of the start record, when the related record is added or deleted, is changed. , It is necessary to change the data value of the corresponding data item in the start record. Furthermore, if the number and types of related records increase beyond the original design range, it is also necessary to reorganize the entire database file that stores the startup records and modify the business processing program, which is necessary for maintenance management. There is a problem that requires a lot of man-hours. In order to avoid such reorganization, it is necessary to secure a sufficient file area from the beginning, assuming a large increase in the amount of data required for searching related records in the future. Will be done.

【0006】本発明の目的は、関連レコードの追加や削
除の際に起動レコードの変更を行う必要がなく、データ
ベースファイルに対し余分なファイル領域を確保する必
要もなく、関連レコードの検索処理効率を向上させるこ
とが可能な関連レコード検索方式を提供することであ
る。
An object of the present invention is to eliminate the need to change the startup record when adding or deleting the related record, to secure an extra file area for the database file, and to improve the search processing efficiency of the related record. It is to provide a related record search method that can be improved.

【0007】[0007]

【課題を解決するための手段】請求項1の関連レコード
検索方式は、検索された一つのデータレコードから関連
のある他のデータレコードを更に再検索するための関連
レコード検索方式において、再検索の源点になる起動レ
コードを一意に特定できる起動レコード識別情報を索引
キーとして再検索の検索条件に合致した関連レコードを
一意に特定できる関連レコード識別情報を対応させた索
引レコードを昇順または降順に配列した関連キー変換テ
ーブルを再検索の検索条件別に格納したキー変換ファイ
ルと、前記キー変換ファイルに格納されている再検索の
検索条件による関連レコードの再検索命令に応答して前
記キー変換ファイルの該当する関連キー変換テーブルか
ら起動レコード識別情報をキーに関連レコード識別情報
を取得して関連レコードを抽出する関連レコード検索手
段とを備えて構成されている。
According to another aspect of the present invention, there is provided a related record search method for re-searching another related data record from one searched data record. The start record that can uniquely identify the starting point that is the source point is used as the index key, and the related record that can uniquely identify the related record that matches the search condition of the re-search is arranged as an index key. A key conversion file in which the related key conversion table stored according to the search condition of the re-search and the corresponding key conversion file corresponding to the re-search command of the related record according to the search condition of the re-search stored in the key conversion file The related record identification information is acquired from the related key conversion table using the start record identification information as a key. It is constituted by a related record retrieval means for extracting over de.

【0008】請求項2の関連レコード検索方式は、請求
項1記載の関連レコード検索方式において、利用者から
の指示を受けて起動され、指定された再検索の検索条件
により再検索の源点になる起動レコードを含むデータベ
ースファイルのすべてのデータレコードに対して関連レ
コードを含むデータベースファイルの検索を順次繰り返
し、前記関連キー変換テーブルを作成して前記キー変換
ファイルに格納する変換テーブル登録手段を備えたこと
を特徴としている。
The related record search method according to claim 2 is activated in response to an instruction from the user in the related record search method according to claim 1, and is set as a re-search source point according to a specified search condition for re-search. A conversion table registration means for sequentially repeating the search for the database file including the related record for all the data records of the database file including the starting record to create the related key conversion table and store the related key conversion table in the key conversion file. It is characterized by that.

【0009】[0009]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0010】図1は本発明の一実施例のシステム構成を
示すブロック図である。
FIG. 1 is a block diagram showing the system configuration of an embodiment of the present invention.

【0011】本実施例の関連レコード検索方式は、図1
に示すように、複数のデータベースファイル1a,1b
……1nで構成されるデータベース1と、入力装置2か
らの指示に従ってデータベース1を検索する検索手段3
とを備えた検索システムにおいて、検索した一つのデー
タレコードから他の関連レコードを再検索する際に使用
する関連キー変換テーブルを格納するキー変換ファイル
4と、特定の再検索条件に対応して検索手段3から起動
されキー変換ファイル4を参照して関連レコードを抽出
する関連レコード検索手段5と、利用者から指示された
再検索条件に対して関連キー変換テーブルを作成しキー
変換ファイル4に格納する変換テーブル登録手段6とを
備えて構成されている。
The related record search method of this embodiment is shown in FIG.
As shown in, a plurality of database files 1a, 1b
... Database 1 composed of 1n and search means 3 for searching the database 1 according to an instruction from the input device 2.
And a key conversion file 4 that stores a related key conversion table used when re-searching another related record from one searched data record, and a search corresponding to a specific re-search condition. A related record search means 5 which is activated from the means 3 to extract a related record by referring to the key conversion file 4, and a related key conversion table for the re-search condition designated by the user and stored in the key conversion file 4. And a conversion table registering means 6 for performing the conversion.

【0012】データベース1は、それぞれ一定の基準で
作成された同種のデータレコード群を格納した複数のデ
ータベースファイル1a,1b……1nから成り、外部
記憶装置上に格納されている。図2は、データベースフ
ァイル1a,1b……1nのレコード形式を示す説明図
で、各データレコードは、データレコードを一意に識別
できるキー値を格納するキー部11と、キー値に関する
詳細情報を示す複数のデータ項目から成るデータ部12
とから構成されている。
The database 1 is composed of a plurality of database files 1a, 1b ... 1n each storing a data record group of the same type created on a fixed basis, and is stored on an external storage device. FIG. 2 is an explanatory diagram showing a record format of the database files 1a, 1b ... 1n, and each data record shows a key portion 11 for storing a key value capable of uniquely identifying the data record and detailed information on the key value. Data part 12 consisting of multiple data items
It consists of and.

【0013】検索手段3は、入力装置2から与えられた
検索条件に従ってデータベース1を検索する通常の検索
機能を有し、検索したデータレコード(起動レコード)
から関連ある他のデータレコードを更に再検索する関連
レコード検索の場合、通常は関連ファイルからデータレ
コードを順次読み込んで特定のデータ項目について起動
レコードと比較する基本的な検索処理を行うが、再検索
の検索条件が、キー変換ファイル4に関連キー変換テー
ブルが格納されている再検索条件の場合には、検索した
起動レコードのキー値を渡して関連レコード検索手段5
を起動する。
The search means 3 has a normal search function for searching the database 1 according to the search condition given from the input device 2, and the searched data record (startup record).
In case of related record search to search again other related data records from the related file, the basic search process is usually performed by sequentially reading the data records from the related file and comparing with the start record for specific data items. Is a re-search condition in which the related key conversion table is stored in the key conversion file 4, the key value of the searched start record is passed and the related record search means 5
To start.

【0014】キー変換ファイル4には、定常業務におい
て頻繁に使用される再検索条件の関連レコード検索を効
率よく行うために、起動レコードのキー値から直接に関
連レコードのキー値が求められる関連キー変換テーブル
が格納されている。図3は、キー変換ファイル4のレコ
ード形式を示す。キー変換ファイル4に格納される関連
キー変換テーブルは、図3に示すように、索引キー部3
1とデータ部32とから成る索引形式であり、索引キー
部31には、起動レコードを一意に識別するための起動
レコード識別情報として、起動レコードが格納されてい
るデータベースファイルを識別するファイル識別キー
と、そのデータベースファイル内で起動レコードを識別
するレコード識別キーとが格納されている。一方、デー
タ部32には、関連レコードを一意に識別するための関
連レコード識別情報として、関連レコードが格納されて
いるデータベースファイルを識別するファイル識別キー
と、そのデータベースファイル内における関連レコード
を識別するレコード識別キーとが格納されている。この
関連キー変換テーブルは、再検索を行う再検索条件ごと
に作成され、検索を容易とするために、索引キー部31
を構成する起動レコードの各識別キー値の昇順または降
順に整列されている。
In the key conversion file 4, the related key whose key value of the related record is directly obtained from the key value of the start record in order to efficiently perform the related record search of the re-search condition frequently used in the routine work. Stores the conversion table. FIG. 3 shows the record format of the key conversion file 4. The related key conversion table stored in the key conversion file 4 is, as shown in FIG.
1 and a data section 32, and the index key section 31 has a file identification key for identifying a database file in which the activation record is stored as activation record identification information for uniquely identifying the activation record. And a record identification key for identifying a start record in the database file. On the other hand, the data section 32 identifies, as the related record identification information for uniquely identifying the related record, a file identification key for identifying the database file in which the related record is stored and the related record in the database file. The record identification key and are stored. This related key conversion table is created for each re-retrieval condition for re-retrieval, and the index key unit 31 is used to facilitate the retrieval.
Are arranged in ascending or descending order of the respective identification key values of the boot record constituting the.

【0015】関連レコード検索手段5は、起動されると
検索手段3から渡された起動レコードのキー値により、
キー変換ファイル4の該当する関連キー変換テーブルを
検索し、取得した関連レコードの識別キー(ファイル識
別キーとレコード識別キー)によりデータベース1を検
索し、該当するデータレコードを抽出する。
When the related record searching means 5 is started, the related record searching means 5 uses the key value of the starting record passed from the searching means 3,
The corresponding related key conversion table of the key conversion file 4 is searched, the database 1 is searched by the identification key (file identification key and record identification key) of the acquired related record, and the corresponding data record is extracted.

【0016】変換テーブル登録手段6は、頻繁に使用さ
れる再検索条件に対して関連キー変換テーブルを作成し
てキー変換ファイル4に格納するために使用される。入
力装置2を介して利用者からの指示を受けると、再検索
条件を検索手段3に与えて起動レコードを含むデータベ
ースファイルの全データレコードに対して関連レコード
検索を順次実行させ、得られた結果から関連キー変換テ
ーブルを作成してキー変換ファイル4に登録する。
The conversion table registration means 6 is used to create a related key conversion table for a frequently used re-search condition and store it in the key conversion file 4. When an instruction from the user is received via the input device 2, the re-search condition is given to the search means 3 to sequentially execute the related record search for all the data records of the database file including the start record, and the obtained result is obtained. A related key conversion table is created from and is registered in the key conversion file 4.

【0017】次に、図4に示す具体例を用い、本実施例
の動作を詳細に説明する。
Next, the operation of this embodiment will be described in detail with reference to the specific example shown in FIG.

【0018】ファイル識別名が“DBF01”のデータ
ベースファイル#1と、ファイル識別名が“DBF0
2”のデータベースファイル#2とがあり、データベー
スファイル#1から検索した一つのデータレコードか
ら、ある特定の再検索条件で関連レコードを検索する業
務が定例的に行われるものとし、この特定の再検索条件
は同じデータベースファイル#1に属する第1の条件を
満たすデータレコードと、データベースファイル#2に
属する第2の条件を満たすデータレコードとを同時に検
索するものとする。ここで、データベースファイル#1
のキー部に格納されているレコード識別キーが“100
01”のデータレコードに対し、第1の条件を満たすデ
ータレコードはレコード識別キー“11001”のデー
タレコードであり、第2の条件を満たすデータレコード
はデータベースファイル#2のレコード識別キー“20
001”のデータレコードであるとする。なお、データ
ベースファイル#1のレコード識別キー“11001”
のデータレコードに対して、レコード識別キー“100
01”のデータレコードは相互に第1の条件を満たし、
第2の条件を満たすデータレコードはデータベースファ
イル#2のレコード識別キー“22001”のデータレ
コードとする。
The database file # 1 having the file identification name "DBF01" and the file identification name "DBF0"
There is a 2 "database file # 2, and it is assumed that the operation of searching for a related record from one data record searched from the database file # 1 under a specific re-search condition is performed regularly. The search condition is to simultaneously search for data records that satisfy the first condition belonging to the same database file # 1 and data records that satisfy the second condition belonging to the database file # 2.
The record identification key stored in the key part of
For the data record "01", the data record satisfying the first condition is the data record having the record identification key "11001", and the data record satisfying the second condition is the record identification key "20" of the database file # 2.
It is assumed that the data record is “001”. The record identification key “11001” of the database file # 1.
For the data record of, the record identification key "100
01 ”data records satisfy the first condition,
The data record satisfying the second condition is the data record of the record identification key “22001” of database file # 2.

【0019】データベースファイル#1から検索された
レコード識別キー“10001”のデータレコードを起
動レコードとして、通常の基本的な方法で関連レコード
を検索する場合は、まず、データベースファイル#1の
データレコードを先頭から順次読み込み、読み込んだデ
ータレコードの特定のデータ項目のデータ値をレコード
識別キー“10001”のデータレコードの特定のデー
タ項目のデータ値と比較し、レコード識別キー“110
01”のデータレコードを第1の条件を満たす関連レコ
ードとして抽出した後も、すべてのデータレコードを読
み終わるまで検索を続け、この時点で該当する関連レコ
ードはレコード識別キー“11001”のデータレコー
ドのみであることが確認できる。その後、データベース
ファイル#2の全データレコードに対して第2の条件に
ついて同様な検索処理を行い、レコード識別キー“20
001”のデータレコードを関連レコードとして抽出す
るため、検索処理に時間がかかることになる。
When the related record is searched by the usual basic method using the data record of the record identification key "10001" searched from the database file # 1 as the starting record, first, the data record of the database file # 1 is searched. The data value of a specific data item of the read data record is sequentially read from the beginning and compared with the data value of a specific data item of the data record of the record identification key “10001”, and the record identification key “110
Even after extracting the data record of "01" as the related record satisfying the first condition, the search is continued until all the data records are read, and at this time, the relevant record is only the data record of the record identification key "11001". After that, the same search process is performed for all the data records of the database file # 2 under the second condition, and the record identification key "20" is added.
Since the data record of "001" is extracted as a related record, the search process takes time.

【0020】これに対して、図1に示す本実施例の場合
は、キー変換ファイル4に変換テーブル登録手段6を用
いてあらかじめ図4に示すような関連キー変換テーブル
が作成されている。関連キー変換テーブルは索引形式で
あり、データベースファイル#1のファイル識別キーと
レコード識別キーとを索引キーとし、関連レコードを一
意に識別するためのファイル識別キーとレコード識別キ
ーとをデータとする固定長索引レコードが、関連レコー
ドごとに1索引レコードの形式で格納されている。すな
わち、レコード識別キー“10001”に対し、データ
ベースファイル#1のレコード識別キー“11001”
のデータレコードを示す参照番号41の索引レコード
と、データベースファイル#2のレコード識別キー“2
0001”のデータレコードを示す参照番号42の索引
レコードとが格納され、レコード識別キー“1100
1”に対して、データベースファイル#1のレコード識
別キー“10001”のデータレコードを示す参照番号
43の索引レコードと、データベースファイル#2のレ
コード識別キー“22001”のデータレコードを示す
参照番号44の索引レコードとが格納されている。
On the other hand, in the case of this embodiment shown in FIG. 1, the related key conversion table as shown in FIG. 4 is created in advance in the key conversion file 4 by using the conversion table registration means 6. The related key conversion table is an index format, and the file identification key and the record identification key of the database file # 1 are used as index keys, and the file identification key and the record identification key for uniquely identifying the related record are fixed as data. The long index record is stored in the form of one index record for each related record. That is, for the record identification key "10001", the record identification key "11001" of the database file # 1
Index record of the reference number 41 indicating the data record of the record and the record identification key “2 of the database file # 2.
The index record of reference number 42 indicating the data record of “0001” is stored, and the record identification key “1100” is stored.
1 ”of the reference record 43 indicating the data record of the record identification key“ 10001 ”of the database file # 1 and the reference record 44 indicating the data record of the record identification key“ 22001 ”of the database file # 2. Stores index records and.

【0021】関連レコードの検索を行う場合には、まず
検索手段3が指定された検索条件でデータベースファイ
ル#1(例えばデータベースファイル1a)からレコー
ド識別キー“10001”のデータレコードを検索した
後、関連レコード検索手段5に対し図4の関連キー変換
テーブルを指定してファイル識別キー“DBF01”及
びレコード識別キー“10001”を渡す。関連レコー
ド検索手段5は、キー変換ファイル4の指定された関連
キー変換テーブルを検索し、参照番号41及び42の索
引レコードを抽出し、データベースファイル#1からレ
コード識別キー“10001”のデータレコードを、デ
ータベースファイル#2(例えばデータベースファイル
1b)からレコード識別キー“20001”のデータレ
コードを直ちに取得することができる。
When searching for related records, first, the searching means 3 searches the data record of the record identification key "10001" from the database file # 1 (for example, the database file 1a) under the specified search condition, and then the related records. The related key conversion table of FIG. 4 is designated to the record search means 5, and the file identification key “DBF01” and the record identification key “10001” are passed. The related record search means 5 searches the specified related key conversion table of the key conversion file 4, extracts the index records with reference numbers 41 and 42, and retrieves the data record of the record identification key “10001” from the database file # 1. , The data record of the record identification key “20001” can be immediately obtained from the database file # 2 (for example, the database file 1b).

【0022】上述したように、本実施例の関連レコード
検索方式においては、定常的に使用される再検索条件に
対し、変換テーブル登録手段6を用いてあらかじめ関連
キー変換テーブルを作成してキー変換ファイル4に登録
しておけば、運用時には起動レコードの検索さえ行えば
これを参照して直ちに関連レコードを取得することがで
きるため、検索時間が著しく短縮されることになる。な
お、関連レコードの追加や削除があった場合でも、起動
レコードのデータ項目の内容は何ら修正する必要がな
く、関連キー変換テーブルのみを修正すればよい。
As described above, in the related record search method of this embodiment, the conversion table registration means 6 is used to create a related key conversion table in advance for the re-search condition that is constantly used, and the key conversion is performed. If the file is registered in the file 4, it is possible to immediately retrieve the related record by referring to it if the activation record is searched during operation, so that the search time is significantly shortened. Even if a related record is added or deleted, the contents of the data items of the activation record do not need to be modified at all, and only the related key conversion table needs to be modified.

【0023】上述の実施例には、関連キー変換テーブル
の作成を容易に行うため、変換テーブル登録手段6を設
けてあるが、関連キー変換テーブルは他の方法で作成し
ても差し支えなく、変換テーブル登録手段6は省略する
こともできる。又、関連キー変換テーブルの各索引レコ
ードは1関連レコードごとに設けた固定長のレコードと
して説明したが、可変長レコードとし、一つの起動レコ
ードに対して複数の関連レコードがある場合には、一つ
の索引レコードのデータ部に複数の関連レコード識別情
報を格納するようにすることもできる。更に、関連キー
変換テーブルの索引キー部には、起動レコードのファイ
ル識別キーとレコード識別キーとが格納されているとし
たが、図4で説明した例のように、起動レコードが一つ
のデータベースファイルに限られる場合は、索引キー部
のファイル識別キーを省略できることは明らかである。
In the above-mentioned embodiment, the conversion table registration means 6 is provided in order to facilitate the creation of the related key conversion table, but the related key conversion table may be created by another method. The table registration means 6 can be omitted. Further, although each index record of the related key conversion table has been described as a fixed length record provided for each related record, it is a variable length record, and if there are a plurality of related records for one activation record, It is also possible to store a plurality of related record identification information in the data part of one index record. Further, the index key portion of the related key conversion table stores the file identification key and the record identification key of the activation record. However, as in the example described with reference to FIG. It is obvious that the file identification key of the index key part can be omitted in the above case.

【0024】なお、関連キー変換テーブルは一つの再検
索条件に対して一つ作成されるが、作成されるテーブル
数が多い場合には、これらを一つのテーブルに統合して
再検索条件を識別する副索引キーを設け、起動レコード
識別キーに加えて副索引キーを併せて指示するように構
成してもよい。又、関連レコード検索手段5の起動と使
用する関連キー変換テーブル(又は副索引キー)の指定
は検索手段3により行われるが、特定の業務処理プログ
ラムから行われてもよいが、汎用の検索プログラムに特
定の検索条件が設定されたときに行われるようにしても
よい。
Although one related key conversion table is created for each re-search condition, if there are many tables to be created, these are integrated into one table to identify the re-search condition. It is also possible to provide a sub index key for performing the operation and to specify the sub index key in addition to the activation record identification key. Further, the starting of the related record search means 5 and the specification of the related key conversion table (or the sub index key) to be used are performed by the search means 3, but may be performed by a specific business processing program, but a general-purpose search program is also available. It may be performed when a specific search condition is set in the.

【0025】[0025]

【発明の効果】以上説明したように、本発明の関連レコ
ード検索方式は、頻繁に使用される関連レコード検索条
件に対して、起動レコードから関連レコードを直接アク
セスするための関連キー変換テーブルを作成してキー変
換ファイルに格納するようにしたので、関連レコードを
短時間で検索できる効果がある。更に、データレコード
上に関連レコード検索用の専用データ項目を持たないた
め、関連レコードの追加や削除の際にデータベースファ
イルを変更する必要もない。なお、関連キー変換テーブ
ルの作成は、変換テーブル登録手段を設けることにより
容易に行うことができる。
As described above, according to the related record search method of the present invention, the related key conversion table for directly accessing the related record from the activation record is created in response to the frequently used related record search condition. Since it is stored in the key conversion file, the related record can be searched in a short time. Furthermore, since there is no dedicated data item for searching related records on the data record, it is not necessary to change the database file when adding or deleting related records. The related key conversion table can be easily created by providing a conversion table registration means.

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

【図1】本発明の一実施例のシステム構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing a system configuration of an embodiment of the present invention.

【図2】図1のデータベースファイルのレコード形式を
示す説明図である。
FIG. 2 is an explanatory diagram showing a record format of the database file of FIG.

【図3】図1のキー変換ファイルに格納されるレコード
形式を示す説明図である。
FIG. 3 is an explanatory diagram showing a record format stored in the key conversion file of FIG.

【図4】図1の動作を説明するためにファイル構成の具
体例を示した説明図である。
4 is an explanatory diagram showing a specific example of a file configuration for explaining the operation of FIG.

【符号の説明】[Explanation of symbols]

1 データベース 1a,1b……1n データベースファイル 2 入力装置 3 検索手段 4 キー変換ファイル 5 関連レコード検索手段 6 変換テーブル登録手段 1 database 1a, 1b ... 1n database file 2 input device 3 search means 4 key conversion file 5 related record search means 6 conversion table registration means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 検索された一つのデータレコードから関
連のある他のデータレコードを更に再検索するための関
連レコード検索方式において、再検索の源点になる起動
レコードを一意に特定できる起動レコード識別情報を索
引キーとして再検索の検索条件に合致した関連レコード
を一意に特定できる関連レコード識別情報を対応させた
索引レコードを昇順または降順に配列した関連キー変換
テーブルを再検索の検索条件別に格納したキー変換ファ
イルと、前記キー変換ファイルに格納されている再検索
の検索条件による関連レコードの再検索命令に応答して
前記キー変換ファイルの該当する関連キー変換テーブル
から起動レコード識別情報をキーに関連レコード識別情
報を取得して関連レコードを抽出する関連レコード検索
手段とを備えたことを特徴とする関連レコード検索方
式。
1. A related record search method for further re-searching another related data record from one searched data record, in which a starting record serving as a source of the re-search can be uniquely identified. Information can be used as an index key to uniquely identify related records that match the search condition for re-search. Related-key conversion table in which index records corresponding to related record identification information are arranged in ascending or descending order is stored by search condition for re-search. In response to a key conversion file and a re-search command for a related record according to a search condition for re-search stored in the key conversion file, the start record identification information is related to the key from the corresponding related key conversion table of the key conversion file. A related record search means for acquiring record identification information and extracting a related record is provided. Related record search method characterized by.
【請求項2】 利用者からの指示を受けて起動され、指
定された再検索の検索条件により再検索の源点になる起
動レコードを含むデータベースファイルのすべてのデー
タレコードに対して関連レコードを含むデータベースフ
ァイルの検索を順次繰り返し、前記関連キー変換テーブ
ルを作成して前記キー変換ファイルに格納する変換テー
ブル登録手段を備えたことを特徴とする請求項1記載の
関連レコード検索方式。
2. A related record is included for all data records of a database file including an activation record which is activated in response to an instruction from a user and becomes a re-retrieval source point according to a designated re-retrieval retrieval condition. 2. The related record search method according to claim 1, further comprising conversion table registration means for sequentially repeating the search of the database file to create the related key conversion table and store the related key conversion table in the key conversion file.
JP6081232A 1994-04-20 1994-04-20 System for retrieving relational record Pending JPH07295993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6081232A JPH07295993A (en) 1994-04-20 1994-04-20 System for retrieving relational record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6081232A JPH07295993A (en) 1994-04-20 1994-04-20 System for retrieving relational record

Publications (1)

Publication Number Publication Date
JPH07295993A true JPH07295993A (en) 1995-11-10

Family

ID=13740714

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6081232A Pending JPH07295993A (en) 1994-04-20 1994-04-20 System for retrieving relational record

Country Status (1)

Country Link
JP (1) JPH07295993A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04287281A (en) * 1991-03-18 1992-10-12 Pfu Ltd Related information referring system for information processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04287281A (en) * 1991-03-18 1992-10-12 Pfu Ltd Related information referring system for information processor

Similar Documents

Publication Publication Date Title
US20020184202A1 (en) Database processing method, apparatus for carrying out the same and medium storing processing program
JPH10312396A (en) Data base system and computer-readable record medium where data base retrieval program is recorded
JPH07295993A (en) System for retrieving relational record
JPH06139280A (en) File management system
JPH081642B2 (en) Keyword search method
JP2002140218A (en) Data processing method, computer-readable recording medium and data processing device
JPH05158984A (en) Device for extracting character string
JPH08305710A (en) Method for extracting key word of document and document retrieving device
JP2596332B2 (en) Data combination extraction method and apparatus
JPH10240744A (en) System for processing retrieval of range division chart and method therefor and recording medium for recording retrieval processing program
JPH05241925A (en) File access managing system
JP3398672B2 (en) Intermediate data storage device
JPH04230576A (en) Method for retrieving record
JP2000066933A (en) Time series data management system
JP2827658B2 (en) Figure analysis device and figure search device
JPH11143749A (en) Relational database management system and data management method
JPH0659950A (en) Database system
JPH09330322A (en) Data retrieval device
JPH04310183A (en) Method for retrieving/outputting relational data base
JPH06139058A (en) Program reorganization specification preparation system
JPH07146879A (en) Relational data base condition retrieval result control system
JPH05165891A (en) Data registration/retrieval system of data base
JPH0447367A (en) Data base retrieval system
JPH0934897A (en) Book management system
JPH02109162A (en) Index system for library file

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19971028