JPH11306183A - Data base retrieval system - Google Patents

Data base retrieval system

Info

Publication number
JPH11306183A
JPH11306183A JP10123983A JP12398398A JPH11306183A JP H11306183 A JPH11306183 A JP H11306183A JP 10123983 A JP10123983 A JP 10123983A JP 12398398 A JP12398398 A JP 12398398A JP H11306183 A JPH11306183 A JP H11306183A
Authority
JP
Japan
Prior art keywords
data
value
set operation
column
stored
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.)
Granted
Application number
JP10123983A
Other languages
Japanese (ja)
Other versions
JP3183252B2 (en
Inventor
Toshihiko Taniguchi
敏彦 谷口
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 JP12398398A priority Critical patent/JP3183252B2/en
Publication of JPH11306183A publication Critical patent/JPH11306183A/en
Application granted granted Critical
Publication of JP3183252B2 publication Critical patent/JP3183252B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To improve retrieval processing to obtain the set operation result by retrieving the number of items storing the same data by means of an index which stores data in order of their value, e.g. in ascending order and then returning the retrieved set operation result. SOLUTION: A database retrieval system includes a set operation processing means 1 which returns the set operation result based on the data value that is read out of an index 2 and the number of items of the duplicated value. The index 2 holds the data value which are stored in ascending order and the duplicated item numbers as the information. When a set operation performs a designated retrieval operation, the index 2 is defined with the value where the columns to be grouped and the set operation are aligned in order of columns to be designated used as the data value. If the same columns are designated for both columns to be grouped and set operation, the index 2 is defined with the value of a single column used as the data value.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データベース検索
システムに関し、特にデータ検索要求に際して集合演算
指定を行う検索方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database search system and, more particularly, to a search method for performing a set operation designation at the time of a data search request.

【0002】[0002]

【従来の技術】この種の従来のデータベースの検索シス
テムは、データベース検索手段と、ソーティング手段
と、集合演算処理手段と、を備えて構成されている。こ
のデータベース検索システムはつぎのように動作する。
すなわち、データベース検索手段によってデータベース
より検索対象となる表データを読み出し、ソーティング
手段によって読み出したデータ群を昇順に並べ替え、集
合演算処理手段によって昇順に並んだデータから集合演
算の処理を行い検索結果として返却する。
2. Description of the Related Art A conventional database search system of this kind includes a database search means, a sorting means, and a set operation processing means. This database search system operates as follows.
That is, the table data to be searched is read from the database by the database search means, the data group read by the sorting means is rearranged in ascending order, and the set operation processing means performs a set operation from the data arranged in ascending order as a search result. return.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来のデータベース検索システムは、集合演算が指定され
ている問い合わせに対する検索時間が遅い、という問題
点を有している。
However, the above-mentioned conventional database retrieval system has a problem that the retrieval time for an inquiry for which a set operation is specified is slow.

【0004】その理由は、集合演算の処理で使用される
データ値と重複したデータ値の件数の情報を得るため
に、表データのソート処理を行い、昇順に並べ替えられ
たデータ群から重複した値を全件、順番に読み出し、重
複した値の件数を数えているため、集合演算の処理時間
が遅くなる、ためである。
[0004] The reason is that in order to obtain information on the number of data values that are duplicated with the data values used in the set operation processing, the table data is sorted, and the data groups that are sorted in ascending order are duplicated. This is because all values are read out in order and the number of duplicate values is counted, so that the processing time of the set operation becomes slow.

【0005】なお、グループインデックスを用いて、集
合演算を行うときに必要とされるソート処理を不要とし
検索範囲を狭めることにより検索処理を短縮するデータ
ベース検索システムが特開平4−337867号公報に
提案されている。
Japanese Patent Laid-Open Publication No. 4-33767 proposes a database search system that shortens the search process by reducing the search range by eliminating the sort process required when performing a set operation using a group index. Have been.

【0006】したがって、本発明は、上記問題点に鑑み
てなされたものであって、その目的は、集合演算の結果
を得る検索の処理性能を向上するデータベース検索シス
テムを提供することにある。
Accordingly, the present invention has been made in view of the above problems, and an object of the present invention is to provide a database search system that improves the processing performance of a search for obtaining a result of a set operation.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するた
め、本発明は、レコードが複数のデータ属性を有し、各
データ属性のデータがデータ列と称する領域に格納され
て全体として表形式とされたデータ構造を有するデータ
ベースに対して、利用者からの検索要求に応答して検索
条件を満足するレコードを出力するデータベース検索シ
ステムであって、前記データ列の中でグループ化される
列と、該グループ化によって、集合演算(件数、合計、
平均、最大値、最小値等)が行われる列の値の組みで構
成されてなるデータ値と、同じデータ値を格納している
件数とをデータ値の大きさの順、例えば昇順に格納した
インデックスを用いて検索し、集合演算の結果を返却す
る手段を備えたものである。
According to the present invention, a record has a plurality of data attributes, and data of each data attribute is stored in an area called a data string to form a table. A database search system for outputting a record satisfying a search condition in response to a search request from a user for a database having a data structure, wherein: a column grouped among the data columns; By the grouping, set operations (number, total,
Average, maximum value, minimum value, etc.) are stored in the order of data value size, for example, in ascending order, and the number of cases storing the same data value are stored. It is provided with means for searching using the index and returning the result of the set operation.

【0008】[0008]

【発明の実施の形態】本発明の実施の形態について以下
に説明する。本発明のデータベース検索システムは、そ
の好ましい実施の形態において、集合演算処理手段(図
1の1)を備え、インデックスに対する検索において、
読み出したデータ値と重複したデータ値の件数から集合
演算の結果を得るようにしたものである。本発明の実施
の形態について図面を参照して以下に詳細に説明する。
Embodiments of the present invention will be described below. In a preferred embodiment, the database search system of the present invention includes a set operation processing means (1 in FIG. 1).
The result of the set operation is obtained from the read data value and the number of duplicate data values. Embodiments of the present invention will be described below in detail with reference to the drawings.

【0009】図1は、本発明の第1の実施の形態を説明
するためのブロック図である。図1を参照すると、本発
明のデータベース検索システムは、その第1の実施の形
態において、インデックス2から読み出したデータ値と
重複している値の件数から集合演算の結果を返却する集
合演算処理手段1を備えている。
FIG. 1 is a block diagram for explaining a first embodiment of the present invention. Referring to FIG. 1, in the first embodiment, the database search system according to the present invention is a set operation processing means for returning a set operation result from the number of data values read from index 2 and the number of duplicate values. 1 is provided.

【0010】インデックス2は、昇順に格納されている
データ値と重複している件数を情報として保持してい
る。
[0010] The index 2 holds, as information, the number of cases that overlap with the data values stored in ascending order.

【0011】集合演算が指定された検索を行う場合、グ
ループ化される列、集合演算が指定される列の順に並ん
だ値を、データ値として、インデックス2を定義する。
When performing a search in which a set operation is specified, an index 2 is defined as a data value using values arranged in the order of a column to be grouped and a column to which the set operation is specified.

【0012】またグループ化される列と集合演算が指定
される列が同一の列であれば、1つの列の値をデータ値
としてインデックス2を定義する。
If the column to be grouped and the column for which the set operation is specified are the same column, an index 2 is defined using the value of one column as a data value.

【0013】以下図2、図3、及び図4を参照して、本
発明の第1の実施の形態の全体の処理フローについて説
明する。なお、図2乃至図4を参照して以下に説明され
る各処理ステップ、及び集合演算処理手段1の処理は、
データベース検索システムを構成するコンピュータ上で
実行されるプログラムによってその機能を実現すること
ができる。
The overall processing flow of the first embodiment of the present invention will be described below with reference to FIG. 2, FIG. 3, and FIG. Each processing step described below with reference to FIGS. 2 to 4 and the processing of the set operation processing unit 1 are as follows.
The function can be realized by a program executed on a computer constituting the database search system.

【0014】図2は、本発明の第1の実施の形態におい
て、インデックスを検索し、データ値が重複している件
数を読み出し、集合演算(件数、合計、平均、最小値、
最大値)の処理を行い、結果を返却するまでの処理の流
れを示すフローチャートである。
FIG. 2 shows a first embodiment of the present invention in which an index is searched, the number of cases where data values are duplicated is read, and a set operation (number of cases, total, average, minimum value,
9 is a flowchart showing the flow of processing from performing a process of (maximum value) to returning a result.

【0015】図2を参照すると、最初にインデックスを
検索しデータ値と件数を読み出す(ステップ201)。
Referring to FIG. 2, first, an index is searched to read out a data value and the number of records (step 201).

【0016】そして、最終インデックスレコードの次の
レコードを読み出そうとして検索出来なかったか否かを
ステップ202にて判断し、そうであれば(インテック
ス読み込み終了の場合)ステップ210へ、そうでなけ
ればステップ203へ分岐する。
Then, it is determined in step 202 whether or not the next record of the last index record could not be retrieved in order to read out the data. It branches to step 203.

【0017】ステップ203では、インデックスの読み
出しが最初の読み出しであるか否か判定し、最初の検索
の場合にはステップ204へ、最初の検索でなければ、
ステップ206へ分岐する。
In step 203, it is determined whether or not the index reading is the first reading. In the case of the first search, the process proceeds to step 204.
Branch to step 206.

【0018】ステップ204では、集合演算の種類を調
べ、集合演算が最小値であればステップ209へ、集合
演算が最小値でなければステップ205へ分岐する。
In step 204, the type of set operation is checked. If the set operation is the minimum value, the flow branches to step 209. If the set operation is not the minimum value, the flow branches to step 205.

【0019】ステップ209では、検索されたデータ値
を演算結果として返却し、ステップ201の処理へ戻
る。
In step 209, the retrieved data value is returned as the operation result, and the process returns to step 201.

【0020】一方、ステップ205では、集合演算の件
数、合計、平均の処理で必要となる累積件数、累積合計
を初期化し(0クリア)、ステップ208の集合演算処
理1へ移行する。
On the other hand, in step 205, the number of cases, the total, and the cumulative number required for the processing of the set operation and the cumulative total required are initialized (cleared to 0), and the process proceeds to the set operation processing 1 in step 208.

【0021】図3は、図2のステップ208の集合演算
処理1の処理の流れを示すフローチャートである。
FIG. 3 is a flowchart showing the flow of the set operation processing 1 in step 208 of FIG.

【0022】図3を参照すると、集合演算処理1では、
最初に集合演算の種類が「件数」であるか否かを調べ
(ステップ301)、「件数」であればステップ305
へ、そうでなければステップ302へ分岐する。
Referring to FIG. 3, in set operation processing 1,
First, it is checked whether or not the type of the set operation is “number of cases” (step 301).
Otherwise, branch to step 302.

【0023】ステップ305では、インデックスから読
み出された件数の値を累積件数に足し込み、集合演算処
理1の処理を終える。
In step 305, the value of the number of cases read from the index is added to the number of cumulative cases, and the set operation processing 1 is completed.

【0024】ステップ302では、集合演算の種類が
「合計」であるか否かを調べ、「合計」であればステッ
プ306へ、そうでなければステップ303へ分岐す
る。
In step 302, it is checked whether the type of the set operation is "total". If "total", the flow branches to step 306;

【0025】ステップ306では、インデックスから読
み出されたデータ値の枚数と件数の積を求め、累積合計
に足し込み、集合演算処理1の処理を終える。
In step 306, the product of the number of data values and the number of data values read from the index is obtained, added to the cumulative total, and the set operation processing 1 is completed.

【0026】ステップ303では、集合演算の種類が
「平均」であるか否かを調べ、「平均」であればステッ
プ307へ、そうでなければステップ304へ分岐す
る。
In step 303, it is checked whether the type of the set operation is “average”. If “average”, the flow branches to step 307; otherwise, the flow branches to step 304.

【0027】ステップ307では、インデックスから読
み出された件数の値を累積件数に足し込み、次のステッ
プ308で、インデックスから読み出されたデータ値の
枚数と件数の積を求め、累積合計に足し込み、集合演算
処理1の処理を終える。
In step 307, the value of the number read from the index is added to the cumulative number. In the next step 308, the product of the number of data values read from the index and the number is obtained and added to the cumulative total. Then, the processing of the set operation processing 1 is completed.

【0028】ステップ304では、集合演算の種類が
「最大値」であるか否かを調べ、「最大値」であればス
テップ309へ分岐し、そうでなければ集合演算処理1
の処理を終える。
In step 304, it is checked whether the type of the set operation is "maximum value". If the type is "maximum value", the flow branches to step 309;
Finish the process.

【0029】ステップ309では、インデックスから読
み出されたデータ値を退避しておき、集合演算処理1の
処理を終える。
In step 309, the data value read from the index is saved, and the set operation processing 1 is completed.

【0030】再び図2を参照すると、ステップ208に
て集合演算処理1を行い、処理を終えれば、ステップ2
01へ戻る。
Referring again to FIG. 2, set operation processing 1 is performed in step 208, and when the processing is completed,
Return to 01.

【0031】ステップ203の判定で、最初の検索でな
い場合(2件目以降の検索では)、グループ化される列
の値が変化したか否かの判定を行い(ステップ20
6)、値が変化していなければステップ208へ、値が
変化していれば集合演算処理2(ステップ207)へ分
岐し、集合演算の結果を返却する。
If it is determined in step 203 that the search is not the first search (in the second or later search), it is determined whether or not the values of the columns to be grouped have changed (step 20).
6) If the value has not changed, the flow branches to step 208, and if the value has changed, the flow branches to set operation processing 2 (step 207), and the result of the set operation is returned.

【0032】図4は、図2のステップ207の集合演算
処理2の処理の流れを示すフローチャートである。
FIG. 4 is a flowchart showing the flow of the set operation processing 2 in step 207 of FIG.

【0033】図4を参照すると、最初に、集合演算の種
類が「件数」であるか否かを調べ(ステップ401)、
「件数」であればステップ405へ、そうでなければス
テップ402へ分岐する。
Referring to FIG. 4, first, it is checked whether or not the type of the set operation is "number of cases" (step 401).
If it is “number”, the process branches to step 405;

【0034】ステップ405では、累積件数の値を集合
演算の結果として返却し、ステップ409へ移行する。
In step 405, the value of the number of cases is returned as the result of the set operation, and the flow advances to step 409.

【0035】ステップ402では、集合演算の種類が
「合計」であるか否かを調べ、「合計」であればステッ
プ406へ、そうでなければステップ403へ分岐す
る。
In step 402, it is checked whether or not the type of the set operation is "total". If "total", the flow branches to step 406;

【0036】ステップ406では、累積合計の値を集合
演算の結果として返却し、ステップ409へ移行する。
In step 406, the value of the cumulative total is returned as the result of the set operation, and the flow advances to step 409.

【0037】ステップ403では、集合演算の種類が
「平均」であるか否かを調べ、「平均」であればステッ
プ407へ、そうでなければステップ404へ分岐す
る。
In step 403, it is checked whether or not the type of the set operation is "average". If "average", the flow branches to step 407;

【0038】ステップ407では、累積合計を累積件数
で除し平均値を集合演算の結果として返却し、ステップ
409へ移行する。
At step 407, the cumulative total is divided by the cumulative number, the average value is returned as the result of the set operation, and the routine proceeds to step 409.

【0039】ステップ409では累積件数、累積合計の
値を0クリアし、集合演算処理2の処理を終える。
In step 409, the values of the cumulative number and the cumulative total are cleared to 0, and the set operation processing 2 is completed.

【0040】ステップ404では、集合演算の種類が
「最小値」であるか否かを調べ、「最小値」であればス
テップ408へ、そうでなければステップ410へ分岐
する。
In step 404, it is checked whether or not the type of the set operation is "minimum value". If it is "minimum value", the flow branches to step 408;

【0041】ステップ408では、最も新しく検索され
たデータ値を集合演算の結果として返却し、集合演算処
理2の処理を終える。
In step 408, the most recently searched data value is returned as the result of the set operation, and the processing of the set operation processing 2 is completed.

【0042】ステップ410では、集合演算処理1のス
テップ309にて退避していたデータ値を演算結果とし
て返却し、集合演算処理2の処理を終える。
In step 410, the data value saved in step 309 of set operation processing 1 is returned as an operation result, and the processing of set operation processing 2 is completed.

【0043】再び図2を参照すると、ステップ207に
て集合演算処理2の処理を行い、処理を終えた後は、ス
テップ208の集合演算処理1に移行する。
Referring again to FIG. 2, the processing of the set operation processing 2 is performed in step 207, and after the processing is completed, the process proceeds to the set operation processing 1 in step 208.

【0044】ステップ201の検索処理にて、次のイン
デックスレコードを読み出そうとして、検索出来なかっ
た場合、ステップ202からステップ210へ飛び、集
合演算が最小値であるか否かを判別し、最小値であれば
処理を終了し、そうでなければステップ211の集合演
算処理2へ分岐する。
In the search processing in step 201, if the next index record is to be read and the search cannot be performed, the process jumps from step 202 to step 210 to determine whether or not the set operation has the minimum value. If the value is a value, the process ends; otherwise, the process branches to the set operation process 2 in step 211.

【0045】ステップ211で、集合演算処理2の処理
を行い、処理を終了する。次に、第1の実施の形態の効
果について説明する。
In step 211, the set operation processing 2 is performed, and the processing is terminated. Next, effects of the first embodiment will be described.

【0046】本発明の第1の実施の形態では、インデッ
クス検索によって昇順に得られるデータ値とその重複件
数を用い、集合演算の処理を行うので、集合演算指定の
検索においてソート処理を行うことなく、また重複して
いる値を検索することなく、集合演算の結果を求めるこ
とができるため、検索処理コストを削減でき、検索処理
性能を向上させることができる。
In the first embodiment of the present invention, since the set operation is performed using the data values obtained in ascending order by the index search and the number of duplicates, the sort operation is not performed in the search for specifying the set operation. Further, since the result of the set operation can be obtained without searching for duplicate values, the search processing cost can be reduced and the search processing performance can be improved.

【0047】次に、上記した本発明の第1の実施の形態
について具体例(実施例)に即してその動作を説明す
る。図5は、本発明の第1の実施の形態を具体的に説明
するための図である。
Next, the operation of the first embodiment of the present invention will be described with reference to a specific example (embodiment). FIG. 5 is a diagram for specifically explaining the first embodiment of the present invention.

【0048】図5を参照すると、地名と枚数の表データ
群101がデータベースに格納されているものとし、イ
ンデックス2が生成されているものとする。
Referring to FIG. 5, it is assumed that a table data group 101 of place names and the number of sheets is stored in a database, and an index 2 is generated.

【0049】ここで、データベース検索システムに、同
じ地名であるデータの総件数を求める検索が要求された
とする。図5において、列‘地名’をグループ化を行う
列とし、列‘枚数’を集合演算の件数を求める列とす
る。
Here, it is assumed that a search for obtaining the total number of data having the same place name is requested from the database search system. In FIG. 5, the column “place name” is a column to be grouped, and the column “number” is a column for calculating the number of set operations.

【0050】インデックスレコードを読み出しデータ値
と件数を取り出し(図2のステップ201)、件数の値
を累積していき(図3のステップ305)、次のインデ
ックスレコードを読み出す。この処理は‘地名’の値が
同じ‘kyoto’である間、繰り返され、4件目に‘地
名’がそれまで読み出していた‘kyoto’と異なる値で
ある‘osaka’のインデックスレコードを読み出した時
点で、それまで累積していた件数の値、5(1件+2件
+2件)を集合演算の件数の結果をとして返却する(図
4のステップ405)。
The index record is read, the data value and the number of cases are taken out (step 201 in FIG. 2), the value of the number of cases is accumulated (step 305 in FIG. 3), and the next index record is read. This process is repeated while the value of 'place name' is the same 'kyoto', and the fourth case reads the index record of 'osaka' where 'place name' is different from 'kyoto' which was read up to then. At this point, the value of the number of cases accumulated up to that time, 5 (1 case + 2 cases + 2 cases), is returned as the result of the number of cases of the set operation (step 405 in FIG. 4).

【0051】同様に‘地名’が‘osaka’であるグルー
プの総件数4件、‘tokyo’であるグループの総件数3
件を集合演算の結果として返却する。
Similarly, the total number of cases of the group whose “place name” is “osaka” is 4 and the total number of cases of the group whose “place name” is “tokyo” is 3
Return the result as the result of the set operation.

【0052】次に、本発明の第2の実施の形態について
詳細に説明する。図6は、本発明の第2の実施の形態の
処理フローを示す流れ図である。図6を参照すると、本
発明の第2の実施の形態は、集合演算処理手段1が、図
2に示した前記第1の実施の形態の構成に、演算処理判
定処理(ステップ212)と、演算処理判定処理(ステ
ップ213)が追加されている。
Next, a second embodiment of the present invention will be described in detail. FIG. 6 is a flowchart illustrating a processing flow according to the second embodiment of this invention. Referring to FIG. 6, according to a second embodiment of the present invention, the set operation processing means 1 includes an operation processing determination process (step 212) in the configuration of the first embodiment shown in FIG. An arithmetic processing determination process (step 213) is added.

【0053】ステップ212、213の各演算処理判定
処理では、それぞれ未処理の集合演算の有無を判定す
る。
In each of the arithmetic processing determination processes in steps 212 and 213, the presence or absence of an unprocessed set operation is determined.

【0054】次に、図6を参照して、第2の実施の形態
の動作について詳細に説明する。複数の集合演算が指定
されている場合、インデックスレコードを読み出した毎
に、集合演算処理1、もしくは集合演算処理2によって
集合演算の処理が行われた後、ステップ212の演算処
理判定処理にて未処理の集合演算があれば、ステップ2
03へ戻り、未処理の集合演算の処理を行う。
Next, the operation of the second embodiment will be described in detail with reference to FIG. When a plurality of set operations are specified, each time an index record is read, after the set operation process is performed by the set operation process 1 or the set operation process 2, the process is not performed in the operation process determination process of step 212. If there is a set operation for processing, step 2
Returning to 03, the unprocessed set operation is performed.

【0055】また、ステップ202でインデックスレコ
ードが読み出せなかった場合、最後にグループ化された
集合演算の処理を行った後、ステップ213の演算処理
判定処理にて、未処理の集合演算があれば、ステップ2
10へ戻り、未処理の集合演算の処理を行う。
If the index record could not be read in step 202, after the last grouped set operation was performed, if there is any unprocessed set operation in the operation , Step 2
Returning to step 10, the unprocessed set operation is performed.

【0056】次に、本発明の第2の実施の形態の作用効
果について説明する。本発明の第2の実施の形態では、
未処理の集合演算が存在する場合、集合演算の処理を繰
り返すように構成されているため、複数の集合演算が指
定されたときでも、集合演算処理結果を返却することが
できる。
Next, the operation and effect of the second embodiment of the present invention will be described. In the second embodiment of the present invention,
When there is an unprocessed set operation, the processing of the set operation is repeated. Therefore, even when a plurality of set operations are designated, the set operation processing result can be returned.

【0057】[0057]

【発明の効果】以上説明したように、本発明によれば、
データベースの全体の検索処理時間を大幅に節約、短縮
することができる、という効果を奏する。
As described above, according to the present invention,
This has the effect of greatly saving and reducing the entire database search processing time.

【0058】その理由は次の通りである。データベース
を用いる業務では一般的に重複を排除する列や、グルー
プ化を行う列と集合演算を指定する列は予め決まってお
り、本発明においては、インデックス検索によって得ら
れるデータ値と重複件数を用いることにより、集合演算
の処理において、全データ群をソートする処理を必要と
しないためである。
The reason is as follows. In a business using a database, a column for eliminating duplication, a column for performing grouping, and a column for specifying a set operation are generally determined in advance. In the present invention, a data value obtained by an index search and the number of duplicates are used. This is because, in the processing of the set operation, the processing of sorting all data groups is not required.

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

【図1】本発明の第1の実施の形態を説明するためのブ
ロック図である。
FIG. 1 is a block diagram for explaining a first embodiment of the present invention.

【図2】本発明の第1の実施の形態の処理フローを説明
するための流れ図であり、集合演算の結果を返却する検
索処理を示す流れ図である。
FIG. 2 is a flowchart for explaining a processing flow according to the first embodiment of this invention, and is a flowchart showing a search process for returning a result of a set operation.

【図3】本発明の第1の実施の形態の処理フローを説明
するための流れ図であり、図2の集合演算処理1の処理
の流れを示す図である。
FIG. 3 is a flowchart for explaining a processing flow according to the first embodiment of the present invention, and is a diagram showing a processing flow of set operation processing 1 in FIG. 2;

【図4】本発明の第1の実施の形態の処理フローを説明
するための流れ図であり、図2の集合演算処理2の処理
の流れを示す図である。
FIG. 4 is a flowchart for explaining a processing flow of the first embodiment of the present invention, and is a diagram showing a processing flow of the set operation processing 2 in FIG. 2;

【図5】本発明の第1の実施の形態を具体的に説明する
ための図であり、表データ群とインデックスの一例を示
す図である。
FIG. 5 is a diagram for specifically explaining the first embodiment of the present invention, and is a diagram illustrating an example of a table data group and an index.

【図6】本発明の第2の実施の形態の処理フローを示す
流れ図である。
FIG. 6 is a flowchart showing a processing flow according to a second embodiment of the present invention.

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

1 集合演算処理手段 2 インデクッス 3 検索結果出力 1 set operation processing means 2 index 3 search result output

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】レコードが複数のデータ属性を有し、各デ
ータ属性のデータがデータ列と称する領域に格納されて
全体として表形式とされたデータ構造を有するデータベ
ースに対して、利用者からの検索要求に応答して検索条
件を満足するレコードを出力するデータベース検索シス
テムであって、 前記データ列の中でグループ化される列と、該グループ
化によって、集合演算(件数、合計、平均、最大値、最
小値等)が行われる列の値の組みで構成されてなるデー
タ値と、同じデータ値を格納している件数とをデータ値
の大きさの順に格納したインデックスを用いて検索し、
集合演算の結果を返却する手段を備えたことを特徴とし
たデータベース検索システム。
1. A database in which a record has a plurality of data attributes and data of each data attribute is stored in an area called a data string and has a data structure in a tabular form as a whole. What is claimed is: 1. A database search system for outputting a record satisfying a search condition in response to a search request, comprising: a column grouped in the data columns; and a group operation (number, total, average, maximum) by the grouping. Value, minimum value, etc.) are searched using an index stored in the order of the data value, and a data value composed of a set of values of a column on which the same data value is stored,
A database search system comprising means for returning a result of a set operation.
【請求項2】複数のデータ属性を有するレコード中にお
いてデータ項目欄と該データ項目に関連する値を格納し
た値欄とが表形式で格納されたデータベースの検索シス
テムにおいて、 グループ化される前記データ項目と、前記データ項目に
ついて集合演算を求める値欄とに対して、値が互いに重
複している項目の件数情報を、前記データ項目及びその
値からなるデータ値と対応させて該値の大きさの順に並
べてなるインデックスファイルを備え、 データ検索要求に対する前記インデックスファイルへの
検索において読み出したデータ値情報及び重複したデー
タ値の件数情報から、前記検索要求で指定された集合演
算の結果を算出する手段を備えたことを特徴とするデー
タベース検索システム。
2. In a database search system in which a data item column and a value column storing a value associated with the data item are stored in a table format in a record having a plurality of data attributes, the data to be grouped For the item and the value column for which a set operation is to be performed on the data item, the number information of the item whose value is duplicated is associated with the data value consisting of the data item and its value, and Means for calculating the result of the set operation specified by the search request from the data value information and the number of duplicate data values read in the search of the index file in response to the data search request A database search system comprising:
【請求項3】レコードが複数のデータ属性を有し、各デ
ータ属性のデータがデータ列と称する領域に格納されて
全体として表形式とされたデータ構造を有するデータベ
ースに対して、利用者からの検索要求に応答して検索条
件を満足するレコードを出力するデータベース検索シス
テムであって、 前記データ列の中でグループ化される列と、該グループ
化によって、件数、合計、平均、最大値、最小値等の集
合演算が行われる列の数値の組みより構成されてなるデ
ータ値と該データ値と重複している件数を一エントリと
してデータの値の順に格納し、その際グループ化される
列と集合演算が指定される列が同一の列であれば1つの
列の値をデータ値として格納してなるインデックスファ
イルを備え、 検索要求に対して、前記インデックスファイルを読み出
しデータ値と重複しているデータ値の件数及び該件数に
対応した値から、累積件数、合計、平均、最大値、最小
値等のうち指定された集合演算の結果を返却する集合演
算処理手段と、を備えたことを特徴とするデータベース
検索システム。
3. A database in which a record has a plurality of data attributes and data of each data attribute is stored in an area called a data string and has a data structure in a tabular form as a whole. What is claimed is: 1. A database search system for outputting a record satisfying a search condition in response to a search request, comprising: a column that is grouped among the data columns; and a number, a total, an average, a maximum, and a minimum by the grouping. A data value composed of a set of numerical values of a column on which a set operation such as a value is performed and the number of duplicates of the data value are stored as one entry in the order of the data value. If the columns for which the set operation is specified are the same column, an index file that stores the value of one column as a data value is provided. Set operation that returns the result of the set operation specified from the cumulative number, total, average, maximum value, minimum value, etc., based on the number of data values that overlap the read data value and the value corresponding to the number And a processing means.
【請求項4】前記検索要求で複数の集合演算が指定され
た場合に、各集合演算毎に前記集合演算処理手段を順次
起動制御し、複数の集合演算結果を返却するように制御
する手段を備えたことを特徴とする請求項3記載のデー
タベース検索システム。
4. A means for controlling, when a plurality of set operations are specified in the search request, to sequentially activate the set operation processing means for each set operation and returning a plurality of set operation results. The database retrieval system according to claim 3, further comprising:
【請求項5】レコードが複数のデータ属性を有し、各デ
ータ属性のデータがデータ列と称する領域に格納されて
全体として表形式とされたデータ構造を有するデータベ
ースに対して、利用者からの検索要求に応答して検索条
件を満足するレコードを出力するデータベース検索シス
テムであって、 前記データ列の中でグループ化される列と、該グループ
化によって、件数、合計、平均、最大値、最小値等の集
合演算が行われる列の数値の組みより構成されてなるデ
ータ値と該データ値と重複している件数を一エントリと
してデータの値の順に格納し、且つグループ化される列
と集合演算が指定される列が同一の列であれば1つの列
の値をデータ値として格納してなるインデックスファイ
ルを用意しておき、 (a)検索要求に対して、前記インデックスファイルか
らインデックスレコードを読み出しデータ値及びその件
数情報を取り出す処理、 (b)前記検索要求の指定をデコードし、該指定に応じ
て、グループ化された列のデータ値について、件数、及
び該件数に対応した値から、累積件数、合計、平均、最
大値、最小値等の集合演算を行う処理、 (c)前記インデックスレコードの最後まで上記
(a)、(b)を行う処理、の上記(a)乃至(c)の
処理を前記データベースを備えたコンピュータ上で実行
させるためのプログラムを記録した記録媒体。
5. A database in which a record has a plurality of data attributes and data of each data attribute is stored in an area called a data string and has a data structure in a tabular form as a whole. What is claimed is: 1. A database search system for outputting a record satisfying a search condition in response to a search request, comprising: a column that is grouped among the data columns; and a number, a total, an average, a maximum, and a minimum by the grouping. A data value composed of a set of numerical values of a column on which a set operation such as a value is performed and the number of duplicates of the data value are stored as an entry in the order of the data value, and the column and the group to be grouped are stored. If the columns for which the operation is specified are the same column, an index file storing the values of one column as data values is prepared, and (a) the index file is stored in response to a search request. (B) decoding the specification of the search request and, in accordance with the specification, determining the number of data values of the grouped columns and the number of the data items according to the specification. (A) a process of performing a set operation such as a cumulative number, a total, an average, a maximum value, and a minimum value from the corresponding value; (c) a process of performing the above (a) and (b) until the end of the index record; A) a recording medium on which a program for causing the computer to execute the processes of (c) to (c) is recorded.
JP12398398A 1998-04-17 1998-04-17 Database search system Expired - Fee Related JP3183252B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12398398A JP3183252B2 (en) 1998-04-17 1998-04-17 Database search system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12398398A JP3183252B2 (en) 1998-04-17 1998-04-17 Database search system

Publications (2)

Publication Number Publication Date
JPH11306183A true JPH11306183A (en) 1999-11-05
JP3183252B2 JP3183252B2 (en) 2001-07-09

Family

ID=14874149

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12398398A Expired - Fee Related JP3183252B2 (en) 1998-04-17 1998-04-17 Database search system

Country Status (1)

Country Link
JP (1) JP3183252B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010186391A (en) * 2009-02-13 2010-08-26 Hitachi Ltd Database processing system, computing machine, and database processing method
JP2017513138A (en) * 2014-03-31 2017-05-25 コファックス, インコーポレイテッド Predictive analysis for scalable business process intelligence and distributed architecture
JPWO2016157271A1 (en) * 2015-03-27 2018-02-01 日本電気株式会社 Sensor network system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010186391A (en) * 2009-02-13 2010-08-26 Hitachi Ltd Database processing system, computing machine, and database processing method
JP2017513138A (en) * 2014-03-31 2017-05-25 コファックス, インコーポレイテッド Predictive analysis for scalable business process intelligence and distributed architecture
JPWO2016157271A1 (en) * 2015-03-27 2018-02-01 日本電気株式会社 Sensor network system

Also Published As

Publication number Publication date
JP3183252B2 (en) 2001-07-09

Similar Documents

Publication Publication Date Title
US8799229B2 (en) Searchable archive
JP3318834B2 (en) Data file system and data retrieval method
US20070124277A1 (en) Index and Method for Extending and Querying Index
JP3452531B2 (en) Method and system for data mining
JP3183252B2 (en) Database search system
US6738771B2 (en) Data processing method, computer readable recording medium, and data processing device
JP2706021B2 (en) High-speed search method for structured databases
JP3980326B2 (en) Data management method and computer-readable recording medium
JPH10240741A (en) Managing method for tree structure type data
JPH01248233A (en) Data base retrieving device
JP3145727B2 (en) Data retrieval device
JPH04337867A (en) Data base retrieval system
JPS61278932A (en) Method of processing data addition
JPH0934899A (en) Retrieval path output method and device
JPH0447858B2 (en)
JPH0452967A (en) And operation processing system for set file
JPH103414A (en) Data storage control system
JPH04195588A (en) Back coincidence retrieving processing system for data base
JPH0342773A (en) Data base retrieving system
JPH05165891A (en) Data registration/retrieval system of data base
JPH0652231A (en) Relational data base operation mechanism
JPH0554082A (en) Data base system
JP2003330957A (en) Set attribute retrieval system, method, and program
JPH04314144A (en) Dara block accesssing system for sequential file
JPH11219352A (en) Document management device and recoding medium

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010327

LAPS Cancellation because of no payment of annual fees