JPH02239370A - Data retrieve system - Google Patents

Data retrieve system

Info

Publication number
JPH02239370A
JPH02239370A JP1059718A JP5971889A JPH02239370A JP H02239370 A JPH02239370 A JP H02239370A JP 1059718 A JP1059718 A JP 1059718A JP 5971889 A JP5971889 A JP 5971889A JP H02239370 A JPH02239370 A JP H02239370A
Authority
JP
Japan
Prior art keywords
flag
child information
column
duplicate
search
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
JP1059718A
Other languages
Japanese (ja)
Inventor
Yoshiaki Nakamura
能章 中村
Masaru Tokumura
徳村 賢
Minoru Kanzaki
歓崎 実
Kenichi Hattori
憲一 服部
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP1059718A priority Critical patent/JPH02239370A/en
Publication of JPH02239370A publication Critical patent/JPH02239370A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To reduce the number of times of record reading at the time of reading a column value by making a flag indicating the soleness of a component name into a column as a retrieve key, and directly retrieving the flag as one of the keys at the time of retrieving. CONSTITUTION:An attribute column 1 is the combined column of an attribute value column 2 and a duplicate flag 3, and >= one column 1 exists in one record. Whereas, the column 1 without the duplicate flag 3 exists as well. When many data having the same attribute value exist in the attribute value column 2, the duplicate flag 3 sets the flag to indicate the existence of duplication at the only one duplicate flag 3 in the data group. Further the flag 3 sets the non-existence of the duplication at the all corresponding duplicate flags in the data group at the time of registering the data. As a result, when the data group corresponding to the column value are retrieved, the number of times of record reading can be suppressed to a minimum when the column value necessary for the generation of the retrieve conditions of answer aggregation is read from the condition aggregation.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、データベースにおいて所望のデータを効率的
に検索するデータ検索方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a data search method for efficiently searching for desired data in a database.

(従来の技術) 従来のこの種の技術においては、同一名称を有する部品
は、別個のレコードとしてシステムに一意に識別できる
レコード番号等の検索キー(以下、ユニークキーと称す
る)で管理しているため、任意の検索条件で検索したデ
ータ群において、当該データ群に含まれるユニークキー
以外のレコードを構成する属性要素(以下、カラムと称
する)を検索する場合、当該データ群を逐時読み出して
カラム値の重複を調べる必要があった。
(Prior art) In this type of conventional technology, parts with the same name are managed as separate records using a search key such as a record number (hereinafter referred to as a unique key) that can be uniquely identified in the system. Therefore, when searching for attribute elements (hereinafter referred to as columns) that constitute records other than unique keys in a data group searched with arbitrary search conditions, the data group is read out one by one and the columns are searched. I needed to check for duplicate values.

(発明が解決しようとする課題) 上述したように、従来の技術においては、重複レコード
の読み出しで多くの検索時間を必要とするという問題が
あった。
(Problems to be Solved by the Invention) As described above, in the conventional technology, there is a problem in that reading out duplicate records requires a lot of search time.

本発明は、上記に鑑みてなされたもので、その目的とす
るところは、部品名の一意性を示すフラグを検索キーと
してカラム化し、検索時にキーの1つとして直接検索で
きるように構成し、レコードの読み出し回数を低減した
データ検索方式を提供することにある。
The present invention has been made in view of the above, and its purpose is to columnize a flag indicating the uniqueness of a part name as a search key, and configure it so that it can be directly searched as one of the keys at the time of search. An object of the present invention is to provide a data search method that reduces the number of times records are read.

〔発明の構成〕[Structure of the invention]

(課題を解決するための手段) 上記課題を解決するため、本発明のデータ検索方式は、
複数の項目を構成する子情報を格納するレコードについ
て項目の組合せであるレコード形式が該子情報と異なる
子情報を検索するデータ検索方式であって、子情報を識
別する識別情報の重複を示す重複フラグを検索キーとし
て設け、子情報を登録する場合に、同一レコード形式の
複数の子情報で該識別情報が同一の場合に、任意の1つ
の子情報の重複フラグのみを重複ありと設定し、該子情
報以外の同一識別情報の子情報の重複フラグを重複なし
と設定し、子情報を検索する場合に、与えられた検索条
件に重複フラグへの重複ありの設定を論理積で追加した
条件で検索を行うことを要旨とする。
(Means for Solving the Problems) In order to solve the above problems, the data search method of the present invention is as follows:
A data search method that searches for child information whose record format, which is a combination of items, is different from that of the child information for records that store child information that constitutes multiple items, and where duplication indicates duplication of identification information that identifies child information. When registering child information by setting a flag as a search key, if the identification information is the same in multiple child information of the same record format, only the duplicate flag of any one child information is set to be duplicated, When searching for child information by setting the duplication flag of child information of the same identification other than the child information to "no duplication", a condition in which the setting of "duplication exists" to the duplication flag is added to the given search condition by logical AND. The purpose of the search is to perform a search using .

(作用) 本発明のデータ検索方式では、同一レコード形式の複数
の子情報で識別情報が同一の場合、任意の1つの子情報
の重複フラグのみを重複ありに設定し、子情報を検索す
る場合、重複フラグの重複ありの設定を論理積に追加し
た条件で検索を行っている。
(Operation) In the data search method of the present invention, when multiple pieces of child information in the same record format have the same identification information, only the duplication flag of any one child information is set to “duplicate” and the child information is searched. , the search is performed using a condition in which the duplicate flag's duplicate setting is added to the logical product.

(実施例) 以下、図面を用いて本発明の実施例を説明する。(Example) Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例に係わるデータ検索方式に使
用されるデータ構成の一部を示す図である。同図におい
て、1は属性カラム、2は属性値カラム、3は重複フラ
グである。属性カラム1は属性値カラム2と重複フラグ
3とを組み合わせた複合力ラムであって、1つのレコー
ド中に1つ以上存在するが、重複フラグを持たないもの
も存在する。重複フラグ3は属性値力ラム2に同一の属
性値を有するデータが多数存在する場合、当該データ群
の唯一つの重複フラグ3に「重複あり」のフラグを設定
し、該データ群の対応する重複フラグ3のすべてに「重
複なし」をデータの登録時に設定するものである。
FIG. 1 is a diagram showing part of a data structure used in a data search method according to an embodiment of the present invention. In the figure, 1 is an attribute column, 2 is an attribute value column, and 3 is a duplication flag. Attribute column 1 is a composite column that is a combination of attribute value column 2 and duplication flag 3, and one or more exists in one record, but there are also columns that do not have a duplication flag. Duplicate flag 3 is an attribute value. If there is a large number of data with the same attribute value in the RAM 2, the only duplicate flag 3 of the data group is set to "Duplicate", and the corresponding duplicate of the data group is set. "No duplication" is set for all flags 3 at the time of data registration.

検索条件に重複の有無検査を指定する一例としては、次
のように記載することができる。
An example of specifying a search condition to check for duplicates can be written as follows.

ここにおいて、4は前記属性値カラム2を使用した検索
を行う検索条件であり、5は重複検査の有無を指示する
検索条件である。属性値カラム2のみを使用した条件検
索は、検索条件4を論理式で組み合わせて実施できる。
Here, 4 is a search condition for performing a search using the attribute value column 2, and 5 is a search condition that indicates whether there is a duplicate test. A conditional search using only attribute value column 2 can be performed by combining search condition 4 with a logical expression.

重複フラグを有する属性1は、重複検査の有無を指定す
る検索条件5で検査の有無を指定できる。重複している
ものを除く場合は、検索条件5に「検査あり」を指定し
、重複を許す場合には、検索条件5に「検索なし」を指
定するかまたは検索条件5を指定しない。
Attribute 1 having a duplicate flag can specify the presence or absence of a test using search condition 5, which specifies the presence or absence of a duplicate test. If duplicates are to be excluded, search condition 5 is designated as "checked"; if duplicates are allowed, search condition 5 is designated as "no search" or search condition 5 is not designated.

第2図は本発明の一実施例に係わるデータ検索方式の重
複フラグを使用した検索動作を示すフローチャートであ
る。同図において、まず前記属性値力ラム2の値だけに
よる前記検索条件4のみで構成した論理式を検索条件に
検索を行い、該当データ群11を生成する(ステップ1
10)。このデータ群11をデータ群12に複写する(
ステップ120)。それから、重複フラグを有する属性
力ラム1について前記検索条件5を使用して重複検査の
有無を調べる(ステップ130)。重複検査を必要とす
るものについては、前記検索条件4と検索条件5の論理
積を検索条件に該当データ13を生成する(ステップ1
40)。次に、データ群12とデータ群13との論理積
をとってデータ群12に置き換える(ステップ150)
。重複フラグを有する属性力ラム1のすべてについて重
複検査を実施したか判定し、終了していない場合は重複
検査の有無の判断ステップ130に戻る(ステップ16
0)。
FIG. 2 is a flowchart showing a search operation using a duplicate flag in a data search method according to an embodiment of the present invention. In the figure, first, a search is performed using a logical expression composed of only the search condition 4 based on the value of the attribute value input column 2 as a search condition, and a corresponding data group 11 is generated (step 1
10). Copy this data group 11 to data group 12 (
Step 120). Then, the presence or absence of a duplicate check is checked using the search condition 5 for the attribute power column 1 having the duplicate flag (step 130). For items that require duplicate inspection, corresponding data 13 is generated using the logical product of search conditions 4 and 5 as a search condition (step 1).
40). Next, take the AND of data group 12 and data group 13 and replace it with data group 12 (step 150)
. It is determined whether the duplicate inspection has been performed for all of the attribute power RAMs 1 having the duplicate flag, and if the duplicate inspection has not been completed, the process returns to step 130 for determining whether or not there is a duplicate inspection (step 16
0).

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、同一レコード形
式の複数の子情報で識別情報が同一の場合、任意の1つ
の子情報の重複フラグのみを重複ありに設定し、子情報
を検索する場合、重複フラグの重複ありの設定を論理積
に追加した条件で検索を行っているので、検索条件のあ
る特定力ラムの値について該当レコードが1つしかない
データ群(条件集合)を生成でき、当該カラム値に対応
するデータ群(答集合)を検索する場合、条件集合から
答集合の検索条件の生成に必要なカラム値を読み出す時
のレコード読み出し回数を最小限に押えることができる
As explained above, according to the present invention, when identification information is the same in multiple pieces of child information in the same record format, only the duplication flag of any one child information is set to "duplicate", and the child information is searched. In this case, since the search is performed using the condition in which the duplicate flag's duplicate setting is added to the logical AND, it is possible to generate a data group (condition set) in which there is only one matching record for the value of a specific power ram in the search condition. , when searching for a data group (answer set) corresponding to the column value, it is possible to minimize the number of record reads when reading the column values necessary for generating the search conditions of the answer set from the condition set.

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

第1図は本発明の一実施例に係わるデータ検索方式に使
用されるデータ構成の一部を示す図、第2図は本データ
検索方式の作用を示すフローチャートである。 1・●・属性力ラム、 2・・・属性値力ラム、 3・・・重複フラグ。 代理人  弁理士  三 好  秀 和第1図 第2図
FIG. 1 is a diagram showing a part of the data structure used in a data search method according to an embodiment of the present invention, and FIG. 2 is a flowchart showing the operation of the data search method. 1・●・Attribute power ram, 2...Attribute value power ram, 3...Duplicate flag. Agent Patent Attorney Hidekazu Miyoshi Figure 1 Figure 2

Claims (3)

【特許請求の範囲】[Claims] (1)複数の項目を構成する子情報を格納するレコード
について項目の組合せであるレコード形式が該子情報と
異なる子情報を検索するデータ検索方式であって、子情
報を識別する識別情報の重複を示す重複フラグを検索キ
ーとして設け、子情報を登録する場合に、同一レコード
形式の複数の子情報で該識別情報が同一の場合に、任意
の1つの子情報の重複フラグのみを重複ありと設定し、
該子情報以外の同一識別情報の子情報の重複フラグを重
複なしと設定し、子情報を検索する場合に、与えられた
検索条件に重複フラグへの重複ありの設定を論理積で追
加した条件で検索を行うことを特徴とするデータ検索方
式。
(1) A data search method that searches for child information whose record format, which is a combination of items, is different from that of the child information for a record that stores child information that constitutes multiple items, and where identification information that identifies the child information overlaps. When registering child information, if the identification information is the same in multiple child information in the same record format, only the duplicate flag for any one child information can be set as a search key. Set,
When searching for child information by setting the duplication flag of child information of the same identification other than the child information to "no duplication", a condition in which the setting of "duplication exists" to the duplication flag is added to the given search condition by logical AND. A data search method characterized by performing a search using .
(2)前記重複フラグに重複ありが設定された子情報の
集合と重複フラグが条件に入っていない検索条件に該当
する子情報の集合との2つ子情報の集合を検索条件に該
当するレコードの集合として生成することを特徴とする
請求項(1)記載のデータ検索方式。
(2) A record that matches the search condition is a set of child information that is a set of child information for which the duplicate flag is set to “duplicate” and a set of child information that falls under the search condition where the duplicate flag is not included in the condition. 2. The data retrieval method according to claim 1, wherein the data retrieval method is generated as a set of data retrieval methods.
(3)検索条件に該当する子情報の集合として、前記2
つの子情報の集合の一方を選択的に生成できることを特
徴とする請求項(1)または(2)記載のデータ検索方
式。
(3) As a set of child information that corresponds to the search conditions,
3. The data search method according to claim 1, wherein one of two sets of child information can be selectively generated.
JP1059718A 1989-03-14 1989-03-14 Data retrieve system Pending JPH02239370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1059718A JPH02239370A (en) 1989-03-14 1989-03-14 Data retrieve system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1059718A JPH02239370A (en) 1989-03-14 1989-03-14 Data retrieve system

Publications (1)

Publication Number Publication Date
JPH02239370A true JPH02239370A (en) 1990-09-21

Family

ID=13121263

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1059718A Pending JPH02239370A (en) 1989-03-14 1989-03-14 Data retrieve system

Country Status (1)

Country Link
JP (1) JPH02239370A (en)

Similar Documents

Publication Publication Date Title
JP5833406B2 (en) Data management architecture related to generic data items using references
JPH02239370A (en) Data retrieve system
JP3366257B2 (en) Data warehouse test data creation device
JPH1166132A (en) Cae information reuse system
JPH0644309A (en) Data base managing system
KR100323607B1 (en) Data conversion method for converting text file searched for art data into master table for art information analysis
JPH0193843A (en) System for coupling table
JPH1185787A (en) Method for retrieving and registering information having link structure
Hartzman et al. A relational approach to querying data streams
JP2724235B2 (en) Variable name inference device
JPS63153630A (en) Retrieval system for document to be cited
JPH06215044A (en) Information retrieval processor
JP3498926B2 (en) Document database management system
JPH09146968A (en) Document retrieving method
JPH11143749A (en) Relational database management system and data management method
JPH04101270A (en) N-dimensional data input system
JPH04156624A (en) High speed accessing systme in knowledge base systme
JP3555542B2 (en) Group number setting device and group number setting method
JP2002163271A (en) Patent management system
JPH0312337B2 (en)
KR19980043212A (en) Method of generating relation-domain-information data of mobile switching center
JP2002304403A (en) Method and system for managing database, process program thereof and recording medium for storing process program thereof
JPS63238622A (en) Relation retrieval system
JPH05143304A (en) Consistency inspecting system
JPH02239371A (en) Data retrieve system