JPH10301935A - Data processing method - Google Patents

Data processing method

Info

Publication number
JPH10301935A
JPH10301935A JP9104830A JP10483097A JPH10301935A JP H10301935 A JPH10301935 A JP H10301935A JP 9104830 A JP9104830 A JP 9104830A JP 10483097 A JP10483097 A JP 10483097A JP H10301935 A JPH10301935 A JP H10301935A
Authority
JP
Japan
Prior art keywords
data
total
item data
total item
hierarchical structure
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
JP9104830A
Other languages
Japanese (ja)
Inventor
Hirofumi Iwasaki
浩文 岩▲崎▼
Takaaki Andou
隆朗 安藤
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP9104830A priority Critical patent/JPH10301935A/en
Publication of JPH10301935A publication Critical patent/JPH10301935A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a data processing method capable of eliminating the necessity of preprocessing such as the generation of an index and easily executing multi-dimensional operation even in the case of executing multi-dimensional operation of the data of a detailed level. SOLUTION: Data related to 'branch' and 'product' included in data existing in a real table 3 are obtained based on the category of hierarchical information 22 and added to the table 3 as a virtual string 23. Then a multi-dimensional totalization result 24 totalizing the contents of all totalization items in the table 3 is obtained by executing the sort post-totalization of respective totalization items in the table 3 as sorts.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、データ処理方法
に関し、特に多次元データベース管理システムの問合せ
処理ならびに集計処理に適するデータ処理方法の改良に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing method, and more particularly to an improvement in a data processing method suitable for query processing and totaling processing of a multidimensional database management system.

【0002】[0002]

【従来の技術】一般に、多次元データベースと呼ばれる
ものは、多次元データを高速に引き出すために、索引を
用いてデータ処理を行っている。索引を用いる方法にも
以下の2通りがある。明細書レベルのデータを保持する
リレーショナルデータベースとは異なり、多次元操作で
必要な最低限の集計レベルのデータを予めリレーショナ
ルデータベース等からロードし、これらのデータを元に
多次元操作で使用するデータを内部的に生成する多次元
データベース。このような多次元データベースが保持す
るデータには、データのロード時または内部的な生成時
に索引を同時に生成し、多次元操作の問合せを高速に行
う。
2. Description of the Related Art Generally, a so-called multidimensional database performs data processing using an index in order to extract multidimensional data at high speed. There are the following two methods for using the index. Unlike a relational database that holds statement-level data, the minimum aggregation level data required for multidimensional operations is pre-loaded from a relational database, etc., and based on these data, data used in multidimensional operations is stored. A multidimensional database generated internally. For data held in such a multidimensional database, an index is simultaneously generated when data is loaded or internally generated, and queries for multidimensional operations are performed at high speed.

【0003】また、通常のリレーショナルデータベース
と同様に明細レベルのデータを保持しており、リレーシ
ョナルデータベース操作を拡張して多次元操作を行う多
次元データベース。このような多次元データベースで
は、多次元操作で使用されるジョインで必要とする索引
を予め生成しておき、多次元操作の問合せを高速に行
う。以上述べた2通りの方法がある。
[0003] Further, a multidimensional database which holds detailed level data like a normal relational database and performs multidimensional operations by extending relational database operations. In such a multidimensional database, an index required for a join used in the multidimensional operation is generated in advance, and a query for the multidimensional operation is performed at high speed. There are two methods described above.

【0004】以上述べた様な従来の多次元データを高速
に引き出すために、索引を用いてデータ処理を行ってい
る一例として、特開平4−229371号公報に開示さ
れた方法がある。この例では、分類項目の階層レベルを
変えて検索することが開示されているが、検索手段とし
て索引に相当する分類項目一覧が必要である。
As an example of performing conventional data processing using an index in order to extract multidimensional data at high speed as described above, there is a method disclosed in Japanese Patent Laid-Open No. Hei 4-229371. In this example, it is disclosed that the search is performed by changing the hierarchical level of the classification items. However, a classification item list corresponding to an index is required as a search means.

【0005】[0005]

【発明が解決しようとする課題】従来のデータ処理方法
は以上の様に構成されているので、明細レベルのデータ
から多次元操作を行う場合には、前処理として索引を生
成する必要がある。さらに多次元操作で必要な最低限の
集計レベルのデータを予めリレーショナルデータベース
等からロードする前者の場合は、明細レベルのデータか
ら集計レベルのデータをロードする必要もある。これら
の前処理は、日々新しい明細データが大量に追加される
場合には、その都度前処理を実施せねばならず、大容量
の多次元データベースでは非常に重たい処理となり、実
際には週次、月次処理となるなどして即時性が失われて
いるといった問題がある。
Since the conventional data processing method is configured as described above, it is necessary to generate an index as preprocessing when performing a multidimensional operation from detailed level data. Furthermore, in the former case, in which data of the minimum aggregation level required for the multidimensional operation is previously loaded from a relational database or the like, it is necessary to load the aggregation level data from the detail level data. When a large amount of new detailed data is added every day, these preprocessing must be performed each time, and in a large-capacity multidimensional database, the processing becomes very heavy. There is a problem that immediacy is lost due to monthly processing.

【0006】この発明は、上記のような問題点を解消す
るためになされたもので、明細レベルのデータに対し多
次元操作を行う場合にも、索引を生成する等の前処理を
不要とし、容易に多次元操作機能を提供することを目的
とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and eliminates the need for preprocessing such as generating an index even when performing multidimensional operations on data at the detailed level. An object is to provide a multidimensional operation function easily.

【0007】[0007]

【課題を解決するための手段】この発明に係るデータ処
理方法は集計する一単位となる複数の集計項目データか
ら構成される明細データの順編成によるデータファイル
と上記集計項目データ間の階層構造を予め設定した階層
構造情報テーブルとを備え、上記集計項目データに基づ
き上記階層構造情報テーブルを参照してその集計項目デ
ータより上位層又は下位層の集計項目データを検索する
ステップ、得られた集計項目データをキーとして上記明
細データをソートし上記集計項目データ単位に集計処理
するものである。
According to the data processing method of the present invention, a hierarchical structure between a data file based on sequential organization of detailed data composed of a plurality of tabulated item data as one unit to be tabulated and the tabulated item data is provided. A hierarchical structure information table which is set in advance, and referring to the hierarchical structure information table based on the total item data, searching for the total item data of an upper layer or a lower layer from the total item data, the obtained total item The detailed data is sorted using the data as a key, and the total processing is performed in the total item data unit.

【0008】また、集計する一単位となる複数の集計項
目データから構成される明細データの順編成によるデー
タファイルと上記集計項目データ間の階層構造を予め設
定した階層構造情報テーブルとを備え、上記明細データ
を全ての上記集計項目データを含む可能な全ての組み合
わせごとに集計し集計データを作成するステップ、上記
集計項目データに基づき上記階層構造情報テーブルを参
照してその集計項目データより上位層の集計項目データ
を検索するステップ、得られた集計項目データをキーと
して上記集計データをソートし上記集計項目データ単位
に集計処理するものである。
[0008] The present invention further includes a data file based on sequential organization of detailed data composed of a plurality of total item data as one unit to be totalized, and a hierarchical structure information table in which a hierarchical structure between the total item data is set in advance. A step of totalizing the detailed data for every possible combination including the above total item data to create total data, referring to the above hierarchical structure information table based on the above total item data, and referring to the upper layer of the total item data A step of retrieving total item data; a step of sorting the total data by using the obtained total item data as a key; and performing a totaling process for each total item data.

【0009】さらに、集計する一単位となる複数の集計
項目データから構成される明細データの順編成によるデ
ータファイルと上記集計項目データ間の階層構造を予め
設定した階層構造情報テーブルとを備え、上記明細デー
タを全ての上記集計項目データを含む可能な全ての組み
合わせごとに集計し集計データを作成するステップ、上
記集計項目データに基づき上記階層構造情報テーブルを
参照してその集計項目データより上位層の集計項目デー
タを検索するステップ、得られた集計項目データとその
識別記号を上記明細データに挿入するステップ、上記識
別記号をキーとして上記集計データをソートし上記集計
項目データ単位に集計処理するものである。
[0009] Further, there is provided a data file by sequential organization of detailed data composed of a plurality of total item data as one unit to be totalized, and a hierarchical structure information table in which a hierarchical structure between the total item data is preset. A step of totalizing the detailed data for every possible combination including the above total item data to create total data, referring to the above hierarchical structure information table based on the above total item data, and referring to the upper layer of the total item data A step of retrieving total item data, a step of inserting the obtained total item data and its identification code into the detailed data, a step of sorting the total data using the above identification symbol as a key, and performing a total process in the total item data unit. is there.

【0010】また、集計する一単位となる複数の集計項
目データから構成される明細データの順編成によるデー
タファイルと上記集計項目データ間の階層構造を予め設
定した階層構造情報テーブルとを備え、上記明細データ
を全ての上記集計項目データを含む可能な全ての組み合
わせごとに集計し集計データを作成するステップ、上記
集計項目データから集計対象とする集計項目データを選
択するステップ、上記集計項目データに基づき上記階層
構造情報テーブルを参照してその集計項目データより上
位層又は下位層の集計項目データを検索するステップ、
得られた集計項目データとその識別記号を上記明細デー
タに挿入するステップ、上記識別記号をキーとして上記
集計データをソートし上記集計項目データ単位に集計処
理するものである。
[0010] Further, there is provided a data file based on sequential organization of detailed data composed of a plurality of total item data as one unit to be totalized, and a hierarchical structure information table in which a hierarchical structure between the total item data is set in advance. Tallying the detailed data for every possible combination including all of the above-mentioned total item data to create total data, selecting the total item data to be totaled from the above total item data, based on the above total item data A step of referring to the hierarchical structure information table to search for a total item data of a higher layer or a lower layer from the total item data,
Inserting the obtained tabulated item data and its identification symbol into the detailed data; sorting the tabulated data using the discrimination symbol as a key; and performing tabulation processing in the tabulated item data units.

【0011】さらにまた、上記階層構造情報テーブルに
は、階層ごとのレベル名、そのレベルに属する要素名、
それらの要素間の順序関係を含むものである。
Furthermore, the hierarchical structure information table includes a level name for each level, an element name belonging to the level,
It includes the order relation between those elements.

【0012】また、予め設定された順序により配設され
た要素に含まれる上記明細データを任意の選択による上
記集計項目データを含む全ての組み合わせごとに集計す
るものである。
[0012] Further, the detailed data included in the elements arranged in a predetermined order is totaled for every combination including the totaling item data by an arbitrary selection.

【0013】さらに、上記集計処理による集計値がゼロ
のときはゼロデータを集計値として保持するものであ
る。
Further, when the total value obtained by the above totaling process is zero, zero data is held as the total value.

【0014】[0014]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

実施の形態1.以下、本発明の実施の形態1を図面に基
づいて詳細に説明する。本実施の形態1における明細デ
ータベース(以下明細DBと称する)システムは、イン
ストール及びセットアップを完了すると、図1に示す一
つの環境が生成される。図1において、1はカタログで
あり、1台のPC Serverには、一つの環境だけが生成可
能であり、その環境にはカタログ1が唯一つ存在する。
カタログ1下には、複数のスキーマ2を生成、削除する
ことが可能である。カタログ1下に生成されるスキーマ
2等に関する全ての情報は、カタログ1情報として上記
明細DBシステムにより管理される。
Embodiment 1 FIG. Hereinafter, Embodiment 1 of the present invention will be described in detail with reference to the drawings. In the specification database (hereinafter referred to as specification DB) system according to the first embodiment, when installation and setup are completed, one environment illustrated in FIG. 1 is generated. In FIG. 1, reference numeral 1 denotes a catalog, and only one environment can be created in one PC Server, and only one catalog 1 exists in the environment.
Under the catalog 1, a plurality of schemas 2 can be generated and deleted. All information relating to the schema 2 and the like generated under the catalog 1 is managed as catalog 1 information by the specification DB system.

【0015】スキーマ2には、複数の実表3を生成、削
除することが可能である。スキーマ2には、SET SCHEM
Aによりデフォルトスキーマを設定できる。明示的デフ
ォルトスキーマを設定しない場合は、システムで決めら
れたスキーマがデフォルトスキーマになる。
In the schema 2, a plurality of base tables 3 can be generated and deleted. Schema 2 contains the SET SCHEM
A can set the default schema. If you do not set an explicit default schema, the schema determined by the system will be the default schema.

【0016】各スキーマ2には、階層構造情報テーブル
としてのカテゴリ4を生成、削除することが可能であ
る。カテゴリ4とは、データの階層構造と各階層での要
素(実表3に含まれる実キー値)間の順序を表現したも
のであり、名前の付いたN個のレベルから構成される。
各レベルには、そのレベルに属する要素の一覧と要素間
の順序関係を持つ。また、レベル間では、要素毎の関係
を持ち、それにより階層関係を表現する。どのカテゴリ
4のどのレベルで列を見るかは、明細DBシステムにお
ける独自のデータベース言語上のカテゴリ関数において
設定する。図2はカテゴリ4の構造を示す一例で、11は
課、名等の「レベル」、12は総務部、人事課等の「要
素」、13は各要素間の「関係」、14は同一レベルにおけ
る各要素の「順序」を示している。
In each schema 2, a category 4 as a hierarchical structure information table can be generated and deleted. Category 4 expresses the hierarchical structure of data and the order between elements (real key values included in the base table 3) at each level, and is composed of N named levels.
Each level has a list of elements belonging to that level and an order relation between the elements. Further, the levels have a relationship for each element, thereby expressing a hierarchical relationship. Which column of which category 4 to look at is set in a category function on a unique database language in the detail DB system. FIG. 2 is an example showing the structure of category 4, 11 is “level” such as section, name, etc., 12 is “element” such as general affairs department, personnel section, etc., 13 is “relationship” between each element, and 14 is the same level Indicates the “order” of each element in the above.

【0017】実表3は、複数の列5(フィールド)から
構成される、固定長で順次ファイルである。明細DBシ
ステムに定義できる表は実表3のみである。但し、各列
のプログラムからの見方を自在に変更することができる
ような仮想的な列5を実現する「カテゴリ関数」を設定
する。
The base table 3 is a fixed-length sequential file composed of a plurality of columns 5 (fields). Only the base table 3 can be defined in the specification DB system. However, a "category function" for realizing a virtual column 5 that allows the viewpoint of the program of each column to be freely changed is set.

【0018】列5に対して「カテゴリ関数」を適用する
ことにより、実表を仮想的な列5でアクセスすることが
可能となる。列5の見方(ビュー)をカテゴリ4を通し
て定義するだけで、各列5の扱いを応用プログラム毎に
変更することができる。具体的には、上記カテゴリ4を
カテゴリ関数を用いて実表3を構成する列5に適用する
ことにより、実表3上に直接保持しない列5が、あたか
も存在するかのように見せかけるものである。これによ
り、キーの並びの変更や集計レベルの選択等が可能とな
る。
By applying the "category function" to column 5, it is possible to access the base table with virtual column 5. By simply defining the view of the column 5 through the category 4, the treatment of each column 5 can be changed for each application program. Specifically, by applying the above category 4 to the column 5 constituting the base table 3 using the category function, the column 5 not directly stored in the base table 3 makes it appear as if it exists. is there. As a result, it is possible to change the key arrangement, select a totaling level, and the like.

【0019】次に、多次元処理全体の処理の流れについ
て説明する。多次元データベースの世界で次元と呼ばれ
るものは、多くの場合階層的な構造を保持し、種々の階
層レベルでの検索や集計が可能である。例えば、個人名
を例にすると、その個人が会社に属している場合は、名
前が決まるとその人の属する課や部が一意に決まる。つ
まり、もし実表3の列5に個人名しか保持していない場
合でも、この個人名の階層構造が別に定義されていれ
ば、階層の上位レベルである部や課をキーとした検索や
集計処理が可能となる。本実施の形態1における明細D
Bシステムでは、これらの操作を明細ベースの実表3に
対して実行することができる。特に、このような多次元
データベースにおける次元と同様の機能を実現するため
に仮想的な列の階層構造であるカテゴリ4を導入するこ
とにより、生データである実表3の見方を自在に変える
ことができる。
Next, the flow of the entire multidimensional processing will be described. What is called a dimension in the world of a multidimensional database often has a hierarchical structure, and can be searched and counted at various hierarchical levels. For example, taking a personal name as an example, if the individual belongs to a company, once the name is determined, the section or department to which the person belongs is uniquely determined. In other words, even if only the personal name is stored in column 5 of the base table 3, if the hierarchical structure of the personal name is defined separately, the search or the totaling using the department or section, which is the upper level of the hierarchy, as a key Processing becomes possible. Specification D in Embodiment 1
In the B system, these operations can be performed on the detail-based base table 3. In particular, by introducing category 4 which is a hierarchical structure of virtual columns in order to realize the same function as the dimension in such a multidimensional database, it is possible to freely change the view of the base table 3 which is raw data. Can be.

【0020】図3は多次元処理の概要を示すもので、3
は実表であり、当初は「メーカ」「日付」「売上」の集
計項目しか存在しなかったものとする。次に、「支店」
「製品」についても集計対象とする要求が発生し、階層
情報22のカテゴリ4に基づき、仮想的な列23が、あたか
も実表3に存在するかのように処理される。次に、実表
3の各集計項目についてそれぞれソートキーとしてソー
ト後集計することにより、実表3の全ての集計項目につ
いて集計した多次元集計結果24を得る。以上の動作は、
すべて応用プログラム25により制御される。
FIG. 3 shows an outline of the multidimensional processing.
Is a base table, and it is assumed that initially, there are only total items of “manufacturer”, “date”, and “sales”. Next, "branch"
A request is also made for the "product" to be counted, and the virtual column 23 is processed as if it exists in the base table 3 based on the category 4 of the hierarchy information 22. Next, the totaled items of the base table 3 are sorted and then totaled as a sort key, thereby obtaining a multidimensional totaling result 24 of all the totalized items of the base table 3. The above operation is
All are controlled by the application program 25.

【0021】実表3を構成する列5は、大きく分けて二
つに分類される。一つは、マスタコードで表されるよう
な物の名前を識別するための情報を保持する列である。
例としては、社員コードや名前等が挙げられるが、これ
らは両方とも個人名を識別するために用いられる。二つ
めは、数値で表されるような物の状態を識別するための
情報を保持する列である。この例としては、売り値や販
売個数等が挙げられる。一般的な多次元データベースで
は、これらの前者を「次元」、後者を「変数」と呼び、
明確に扱いを分けているが、一般的なSQLの世界及び
明細DBシステムでは、これら両方が一つの行に混在す
る。なお、明細DBシステムにおいてGROUPBYで集計処
理を行う場合、GROUP BYのキーに指定する列が次元、
集合関数に指定する列が変数に該当する。
The column 5 constituting the base table 3 is roughly classified into two. One is a column that holds information for identifying the name of an object represented by a master code.
Examples include employee codes and names, both of which are used to identify personal names. The second is a column that holds information for identifying the state of an object represented by a numerical value. Examples of this include selling prices and sales quantities. In a typical multidimensional database, the former are called "dimensions" and the latter are called "variables."
Although the treatment is clearly divided, in the general SQL world and the specification DB system, both of them are mixed in one line. When performing aggregation processing with GROUPBY in the detail DB system, the column specified as the key of GROUP BY has dimensions,
The column specified in the set function corresponds to the variable.

【0022】次に、カテゴリ4について詳細説明する。
実表3のある列5にカテゴリ4を適用することで、多次
元DBにおける「次元」と同様の効果を得ることが可能
となる。カテゴリには、以下の情報が含まれている。 (1)カテゴリ名 (2)階層毎のレベル名、及びそのレベルに属する要素
一覧、及び要素間の順序関係 (3)レベル間の要素の関係一覧 (4)各レベルの特殊値(「ALL」等)の具体値 カテゴリ名及びレベル名は、カテゴリ関数を適用する際
に用い、カテゴリ名はスキーマ内でユニークであり、レ
ベル名はカテゴリ内でユニークであれば良い。各レベル
の要素12は、検索や集計におけるキーとなる項目であ
り、同一レベルの要素間では順序を定義できる。但し、
この順序はROLLUP及びCUBE集計を行った場合のみ意味を
持ち、集計を行わない場合や単純なGROUP BYの場合に
は、通常のデータ型毎の順序が適用される。これによ
り、後述のロールアップ集計の結果出力順を利用者毎に
設定可能となる。
Next, category 4 will be described in detail.
By applying category 4 to column 5 in base table 3, it is possible to obtain the same effect as "dimension" in a multidimensional DB. The categories include the following information: (1) Category name (2) Level name for each hierarchy, list of elements belonging to that level, and order relation between elements (3) List of relation of elements between levels (4) Special value of each level ("ALL" Etc.) The category name and the level name are used when applying the category function. The category name may be unique within the schema, and the level name may be unique within the category. The element 12 at each level is a key item in search and tabulation, and the order can be defined between elements at the same level. However,
This order is significant only when ROLLUP and CUBE aggregation is performed, and when aggregation is not performed or simple GROUP BY, the normal order for each data type is applied. This makes it possible to set the output order of the result of the roll-up aggregation described later for each user.

【0023】各レベルの要素定義時に一つ上位のレベル
の要素12との関係を定義することにより、カテゴリ4と
しての階層構造を定義する。この関係を定義することに
より、上位レベルでの検索や集計が可能となる。この機
能を積極的に使う方法として、列5の要素12の中で自分
が処理すべきものが限定される場合には、自分用のカテ
ゴリを用意し、必要な要素12のみをレベルの要素12とし
て定義することも可能である。
By defining the relationship with the element 12 at the next higher level when defining the element at each level, a hierarchical structure as category 4 is defined. By defining this relationship, it is possible to search and count at a higher level. As a way to actively use this function, if the items you need to process are limited among the elements 12 in column 5, prepare a category for yourself and use only the necessary elements 12 as level elements 12. It is also possible to define.

【0024】カテゴリ4内には、「ALL」という特殊
値が論理的に存在するが、これはロールアップやキュー
ブ集計を実行した場合の「中計」や「大計」を表す値と
して用いられる。図4は、実表3とカテゴリ4との対応
付けを示したもので、実表3中の山田太郎はカテゴリ4
中に存在するので、そのまま対応付け可能である。
A special value "ALL" logically exists in category 4, which is used as a value representing "medium plan" or "grand total" when a roll-up or cube aggregation is executed. . FIG. 4 shows the correspondence between the base table 3 and the category 4.
Since it exists inside, it can be associated as it is.

【0025】本実施の形態1における明細DBシステム
では、実表3を構成する通常の列に対し、実際には存在
しない仮想的な列を実現するカテゴリ関数を提供する。
カテゴリ関数を利用するためには、前述のカテゴリ4を
定義した後に、それを適用する実表3に対して、列5と
カテゴリ4内のいずれかのレベルをマッピングさせるこ
とが必要である。一つの列5に対して見方を変えること
により、階層構造を複数定義することが可能であるた
め、カテゴリ4と列5の関係はN対1になる。これは、
名前という列に対して、「組織」と「役職」というよう
に全く異なる複数のカテゴリを適用できることを示す。
また一つのカテゴリ4内には複数のレベルを定義するこ
とが可能であり、その各レベルに対してカテゴリ関数を
適用できる。これは、組織というカテゴリの中には、
「部」と「課」と「名」という複数のレベルを定義で
き、その中のどのレベルでもカテゴリ関数を適用できる
ことを示す。
In the specification DB system according to the first embodiment, a category function for realizing a virtual column that does not actually exist is provided with respect to a normal column constituting the base table 3.
In order to use the category function, it is necessary to define the above-mentioned category 4, and then map column 5 and any level in category 4 to the base table 3 to which the category 4 is applied. By changing the viewpoint of one column 5, it is possible to define a plurality of hierarchical structures, so that the relationship between category 4 and column 5 is N: 1. this is,
This indicates that a completely different category such as "organization" and "post" can be applied to the column of name.
A plurality of levels can be defined in one category 4, and a category function can be applied to each level. This is within the category of organizations,
It shows that multiple levels of "department", "section", and "name" can be defined, and that the category function can be applied to any of the levels.

【0026】カテゴリ4内で定義した要素12間の順序14
は、カテゴリ関数を適用して得られた列に対してROLLUP
やCUBE集計を行った場合のみ有効である。また、カテゴ
リ関数はカテゴリ4内の各レベルの要素12に値をマッピ
ングするだけでなく、各レベルの副要素にもマッピング
することが可能である。
Order 14 between elements 12 defined in category 4
ROLLUP on the column obtained by applying the category function
Valid only when or CUBE tally is performed. The category function can map not only the value to the element 12 of each level in the category 4 but also the sub-element of each level.

【0027】図5は列とカテゴリを適用することにより
得られる仮想的な列との関係を示したもので、名前から
組織(課)へのカテゴリ関数を適用することにより課名
の仮想的な列が生成され、名前から組織(部)へのカテ
ゴリ関数を適用することにより部名の仮想的な列が生成
されることを概念的に示したものである。
FIG. 5 shows the relationship between a column and a virtual column obtained by applying a category. By applying a category function from a name to an organization (section), a virtual name of the section is obtained. This conceptually shows that a column is generated and a virtual column of a department name is generated by applying a category function from a name to an organization (department).

【0028】図6は列と仮想的な列との関係を具体的に
示したもので、列上の名前が、名前から組織(課)への
カテゴリ関数を適用することにより仮想的な列上に課名
として生成される様子を示している。
FIG. 6 specifically shows the relationship between the columns and the virtual columns. The names on the columns are changed by applying a category function from the name to the organization (section). Shows how it is generated as a section name.

【0029】本実施の形態1における明細DBシステム
で提供するデータ型は、カテゴリの考え方に似た機能を
持つ「DATE型」も提供する。このDATE型は、日付を表す
データ型である。図7はDATE型の階層構造を示すもの
で、従来からの慣習による暗黙の関係による階層構造を
示している。
The data type provided by the specification DB system in the first embodiment also provides a “DATE type” having a function similar to the concept of a category. This DATE type is a data type representing a date. FIG. 7 shows a hierarchical structure of the DATE type, and shows a hierarchical structure based on an implicit relationship according to a conventional practice.

【0030】実施の形態2.多次元的な集計処理の方法
として、ROLLUPとCUBE が挙げられるが、これらに本発
明を適用した実施の形態2について図に基づいて説明す
る。明細DBシステムのデータベース言語の中のGROUP
BYにおいて、複数のキーを指定してグループ化を行っ
た場合、指定した複数のキーを一固まりとした集計処理
を行う(小計)だけである。それに対してROLLUPやCUBE
の集計では、指定した複数のキーのいずれかが一周り
(キーブレーク)すると、そこまでの集計処理をさらに
集計(中計や大計)し、結果として返すものである。RO
LLUPとCUBEの出力結果の違いを図8に示す。図中の
「*」は、列に含まれる全ての要素を意味し、「AL
L」は、その列の要素全ての合計を意味する。図8の表
現例は、3次元(GROUP BY句のキーが3個)で階層関
係がないものを示す。
Embodiment 2 FIG. ROLLUP and CUBE can be cited as a method of multidimensional aggregation processing. Embodiment 2 in which the present invention is applied to these methods will be described with reference to the drawings. GROUP in the database language of the detail DB system
When grouping is performed by specifying a plurality of keys in the BY, only the aggregation processing of the specified plurality of keys is performed (subtotal). ROLLUP and CUBE
In one of the specified keys, when one of a plurality of designated keys makes a round (key break), the tally processing up to that point is further summed (middle plan or grand total) and returned as a result. RO
FIG. 8 shows the difference between the output results of LLUP and CUBE. “*” In the figure means all elements included in the column, and “AL”
"L" means the sum of all the elements in the column. The expression example in FIG. 8 shows a three-dimensional (three GROUP BY clause keys) with no hierarchical relationship.

【0031】ROLLUPとCUBEの具体的な例を考えるため、
図9に示すカテゴリ4を持つ実表3を考える。また、実
表3の構造は図10に示す様になっており、集計する一
単位となる複数の集計項目データから構成される明細デ
ータの順編成によるデータファイルとして構成されてい
る。また、データベース言語としてはSQLを使用してい
る。
To consider a specific example of ROLLUP and CUBE,
Consider base table 3 having category 4 shown in FIG. Further, the structure of the base table 3 is as shown in FIG. 10, and is configured as a data file by sequential organization of detailed data composed of a plurality of total item data as one unit to be totaled. SQL is used as the database language.

【0032】図10に示す実表3に対して、「片瀬支店
の1月から3月までの月別分野別売り上げ表」を得るた
めに、図11に示すGROUP BY、ROLLUP、CUBEの3通り
の明細データベースの検索を指定する文を発行した場合
に得られる結果が図12に示す一覧表である。図12に
おいて、(a)が GROUP BYによる集計、(b)がROL
LUPによる集計、(c)がCUBEによる集計結果を示して
おり、(c)においては、1Q欄において、テレビ、ビ
デオ、洗濯機、冷蔵庫、AV、家電、1月〜3月の売上
のそれぞれの総合計が集計されている点が特徴である。
なお、図11の各SQL文に示されている「CATEGO
RY〜」がカテゴリ関数を示し、カテゴリ4による上位
層への関係付けが行われる。
With respect to the base table 3 shown in FIG. 10, in order to obtain a “monthly field sales table for the Katase branch from January to March”, three types of GROUP BY, ROLLUP, and CUBE shown in FIG. FIG. 12 is a list showing results obtained when a statement designating a search of the detail database is issued. In FIG. 12, (a) summarizes by GROUP BY, (b) shows ROL
Tabulation by LUP, (c) shows the tabulation result by CUBE. In (c), in the 1Q column, each of the sales of TV, video, washing machine, refrigerator, AV, home appliances, and January to March is shown. The feature is that the grand total is tabulated.
Note that “CATEGO” shown in each SQL statement of FIG.
"RY ~" indicates a category function, and a category 4 is associated with an upper layer.

【0033】ここで、多次元的な操作であるロールアッ
プやキューブを求めるための処理方法について説明す
る。ソート処理を中心にロールアップを求める方法は、
基本的にはソート処理を中心にSQLのGROUP BYを行
う処理に似ており、入力データをソートした後キーブレ
ーク毎に集計処理を行うことでロールアップ集計を得ら
れる。ソート処理を中心にN次元のキューブを求めるた
めには、ロールアップ的な集計処理をN回繰り返すこと
で得ることができる。
Here, a processing method for obtaining a roll-up or cube as a multidimensional operation will be described. The method of finding the roll-up centering on the sorting process,
Basically, it is similar to the process of performing GROUP BY of SQL focusing on the sort process. By sorting input data and performing a totaling process for each key break, roll-up totaling can be obtained. In order to obtain an N-dimensional cube centering on the sorting process, it can be obtained by repeating a roll-up counting process N times.

【0034】まず、明細データに対して直接ロールアッ
プ的な集計処理を実行すると、集計オーバヘッドが大き
くなる可能性があるため、明細データの件数によって
は、第一段階として通常のGROUP BY集計を求めること
になる。図12において、(a)では、テレビ、ビデ
オ、洗濯機、冷蔵庫、AV、家電、月の全ての集計項目
データを含む可能な全ての組み合わせごとに集計してあ
る。このGROUP BYしたデータ(または、明細データ)
に対して、第二段階として分野、月に対するロールアッ
プ集計を行うと、(b)に示す通り、分野、月ごとに集
計される。このようなロールアップ操作を各次元毎に同
様の操作を行うと、最終段階では、全てのキューブ集計
結果が得られることになる。
First, if a roll-up aggregation process is directly performed on the detailed data, the aggregation overhead may increase. Therefore, depending on the number of detailed data, a normal GROUP BY aggregation is obtained as the first step. Will be. In FIG. 12, in (a), totals are collected for all possible combinations including total item data of TV, video, washing machine, refrigerator, AV, home appliance, and month. This GROUP BY data (or detail data)
On the other hand, when the rollup tally is performed for the field and the month as the second stage, the data is totaled for each field and month as shown in FIG. If such a roll-up operation is performed for each dimension, in the final stage, all cube aggregation results are obtained.

【0035】ここで、集計値がゼロの場合は集計値をゼ
ロとしてゼロデータを集計値として保持する。図13に
おいて、辻堂支所と今泉支所が売上高ゼロの場合、売上
高ゼロのデータを追加して集計するゼロ集計をすること
ができる。このゼロ集計機能は、指定により実施するし
ないを選択することができる。
Here, when the total value is zero, the total value is set to zero and zero data is held as the total value. In FIG. 13, when the Tsujido branch and the Imaizumi branch have zero sales, zero counting can be performed by adding and counting data of zero sales. This zero totaling function can be selected not to be performed by designation.

【0036】実施の形態3.本発明をパイプライン・マ
ージソーターに適用した場合について実施の形態3とし
て説明する。図14はパイプライン・マージソーターに
おいて、CUBEによる集計を行うときのデータフローの主
要部分を示したものである。図において、31はGROUP B
Yによる集計を行った後のデータから集計対象とする要
素を選択しそれらの集計項目データをディスクバッファ
(図示せず)に格納したもので、このデータはDMA転
送によりパイプライン・マージソーター(図示せず)内
バッファに複数件のデータを一度に読み込む。パイプラ
イン・マージソーター内において射影処理を実行し、ソ
ートキーデータ(バッファ内左側)とユーザに返すデー
タ(バッファ内右側)にレコードの内容を拡張し32に示
す状態となる。次に、パイプライン・マージソーター内
のファームウェア(F/W)により、DMA転送時の射影
で空けられた隙間に、カテゴリ4を参照にしながら識別
記号としてのソート用順序キーや上位階層データがバッ
ファ内に書き込まれ33に示すバッファの状態になる。バ
ッファが全て埋まると、データはソート部34へ送られ、
バッファ左側のソートキー順にソートされる。カテゴリ
4から下位層データがバッファ内に書き込まれる場合に
は、書き込まれる位置が33に示す状態とは異なる位置に
なるだけで処理内容は同一である。
Embodiment 3 A case where the present invention is applied to a pipeline merge sorter will be described as a third embodiment. FIG. 14 shows a main part of a data flow when performing aggregation by CUBE in the pipeline merge sorter. In the figure, 31 is GROUP B
The elements to be summed are selected from the data after the summation by Y, and the summation item data is stored in a disk buffer (not shown). This data is transferred by DMA transfer to a pipeline merge sorter (FIG. (Not shown) Read multiple data into the internal buffer at once. Projection processing is executed in the pipeline merge sorter, and the contents of the record are extended to the sort key data (the left side in the buffer) and the data to be returned to the user (the right side in the buffer), and the state shown in FIG. Next, the firmware (F / W) in the pipeline / merge sorter buffers sort order keys and upper layer data as identification symbols while referring to category 4 in gaps created by projection during DMA transfer. And the state of the buffer shown in 33 is reached. When the buffer is completely filled, the data is sent to the sorting unit 34,
Sorted in the order of the sort key on the left side of the buffer. When the lower layer data from category 4 is written in the buffer, the processing contents are the same except that the writing position is different from the state shown in 33.

【0037】バッファ左側のソートキー順にソートされ
た結果は35に示すバッファの状態になる。ここでまたF
/Wにより、集計処理が行われるが、ここではキーブレ
ークでの集計(ロールアップ集計)が行われる。最後に
バッファ内右側のレコードの内容をユーザに返すことに
より、製品、分野での集計が完了する。以上の処理を日
付、支店、メーカの集計対象として選択した全ての要素
について実行することによりキューブ処理が完了する。
The result of sorting in the order of the sort keys on the left side of the buffer becomes the state of the buffer shown at 35. Here again F
The totaling process is performed by / W. Here, the totaling (roll-up totaling) by key break is performed. Finally, by returning the contents of the record on the right side of the buffer to the user, the totaling for the products and fields is completed. The cube processing is completed by executing the above processing for all the elements selected as the totals of the date, branch, and manufacturer.

【0038】次に、実施の形態3の動作について説明す
る。図15は、動作を説明する処理フローであり、先
ず、実表3の明細データから全ての集計項目データを含
む可能な全ての組み合わせごとに集計し集計データを作
成するGROUP BYを実行する(ステップS1)。次に、
集計項目データから集計対象とする集計項目データを選
択し、ディスクバッファに格納する(ステップS2)。
選択されなかった集計項目データは削除されるので、レ
コード長は縮小された状態となる。ここで、要素数が少
なく、選択せずに全ての集計項目データをディスクバッ
ファに格納することも可能であり、この場合にはカテゴ
リ4から下位層データを検索する必要はなく、上位層デ
ータのみの検索となる。
Next, the operation of the third embodiment will be described. FIG. 15 is a processing flow for explaining the operation. First, GROUP BY is performed for totaling all possible combinations including all total item data from the detailed data of the base table 3 to generate total data (step). S1). next,
The total item data to be totaled is selected from the total item data and stored in the disk buffer (step S2).
Since the total item data that has not been selected is deleted, the record length is reduced. Here, since the number of elements is small, it is also possible to store all the aggregation item data in the disk buffer without selection, and in this case, it is not necessary to search the lower layer data from category 4, only the upper layer data. Search.

【0039】次に、射影処理によりソートキーデータと
ユーザに返すデータにレコードの内容を拡張しカテゴリ
の上位層又は下位層の集計項目データ及び順序キーを挿
入するスペースを設定する(ステップS3)。カテゴリ
を検索して上位層又は下位層の集計項目データとその順
序キーを上記スペースに挿入する(ステップS4)。順
序キーをソートキーとしてソートする(ステップS
5)。
Next, the contents of the record are extended to the sort key data and the data to be returned to the user by the projection processing, and a space for inserting the total item data of the upper layer or lower layer of the category and the order key is set (step S3). The category is searched, and the total item data of the upper layer or the lower layer and the order key thereof are inserted into the space (step S4). Sort using the order key as the sort key (step S
5).

【0040】次に、集合演算によりソートキーの対象と
した集計項目データについて集計し集計用の行を追加す
る(ステップS6)。ここで、選択した要素の集計項目
データの全てについて集計処理を終了したかを判定し
(ステップS7)、終了していない場合はステップS3
に戻り、次に集計処理する集計項目データの順序キーを
ディスクバッファに格納する。終了した場合はステップ
S8に移り、選択した集計項目データについてのCUBEが
完成する。
Next, tabulation item data targeted for the sort key is tabulated by a set operation, and a row for tabulation is added (step S6). Here, it is determined whether or not the aggregation processing has been completed for all of the aggregation item data of the selected element (step S7).
Then, the order key of the aggregation item data to be aggregated next is stored in the disk buffer. When the processing is completed, the process proceeds to step S8, and the CUBE for the selected aggregation item data is completed.

【0041】上記の通り、データ長の比較的長い文字デ
ータをソートキーとせず、数字によるコードである順序
キーをソートキーとしてソートすることにより、より高
速にソート処理が可能である。
As described above, the sorting process can be performed at a higher speed by sorting the character data having a relatively long data length as the sort key without using the character data having a relatively long data length as the sort key.

【0042】[0042]

【発明の効果】この発明は、以上説明したように構成さ
れているので、以下に示すような効果を奏する。
Since the present invention is configured as described above, it has the following effects.

【0043】集計項目データ間の階層構造を予め設定し
た階層構造情報テーブルを備えているので、集計項目デ
ータより上位層又は下位層の集計項目データについての
集計値を得ることができる。
Since the hierarchical structure information table in which the hierarchical structure between the total item data is set in advance is provided, it is possible to obtain the total value of the total item data in the upper layer or the lower layer than the total item data.

【0044】また、明細データを全ての上記集計項目デ
ータを含む可能な全ての組み合わせごとに集計し集計デ
ータを作成するステップを設けたので、より高速に上位
層の集計項目データについての集計値を得ることができ
る。
Further, since a step of totalizing the detailed data for every possible combination including all the above-mentioned total item data and creating the total data is provided, the total value of the total item data of the upper layer can be calculated more quickly. Obtainable.

【0045】さらに、集計項目データに基づき上記階層
構造情報テーブルを参照して得られた集計項目データと
その識別記号を上記明細データに挿入するステップを設
けたので、上記識別記号をソートキーとしてソートする
ことができるので、より高速に上位層の集計項目データ
についての集計値を得ることができる。
Further, a step of inserting the total item data obtained by referring to the hierarchical structure information table based on the total item data and its identification symbol into the detailed data is provided, so that sorting is performed using the identification symbol as a sort key. Therefore, the total value of the total item data of the upper layer can be obtained more quickly.

【0046】また、集計項目データから集計対象とする
集計項目データを選択するステップを設けたので、集計
項目データより上位層又は下位層の集計項目データにつ
いての集計値をより高速に得ることができる。
Further, since the step of selecting the total item data to be totalized from the total item data is provided, the total value of the total item data in the upper layer or lower layer than the total item data can be obtained more quickly. .

【0047】さらにまた、階層構造情報テーブルには、
階層ごとのレベル名、そのレベルに属する要素名、それ
らの要素間の順序関係を含むように構成したので、集計
項目データより上位層又は下位層の集計項目データにつ
いての集計値を得ることができるとともに、要素間の順
序関係により集計のレベルを設定することができる。
Further, the hierarchical structure information table includes:
Since it is configured to include the level name for each hierarchy, the names of the elements belonging to that level, and the order relation between those elements, it is possible to obtain a total value for the total item data of a higher layer or a lower layer than the total item data. At the same time, the level of aggregation can be set based on the order relation between elements.

【0048】また、明細データを任意の選択による上記
集計項目データを含む全ての組み合わせごとに集計する
ように構成したので、すべての検索条件に対応すること
ができる。
Further, since the detailed data is configured to be totaled for every combination including the above-mentioned total item data by an arbitrary selection, it is possible to correspond to all search conditions.

【0049】さらに、集計値がゼロのときはゼロデータ
を集計値として保持するように構成したので、集計値が
ゼロであることを容易に把握することができる。
Furthermore, since the zero data is held as the total value when the total value is zero, it can be easily grasped that the total value is zero.

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

【図1】 この発明の実施の形態1を示す明細DBシス
テムの構成図である。
FIG. 1 is a configuration diagram of a specification DB system according to a first embodiment of the present invention.

【図2】 この発明の実施の形態1を示すカテゴリの構
造図である。
FIG. 2 is a structural diagram of a category showing the first embodiment of the present invention.

【図3】 この発明の実施の形態1を示す多次元処理の
概要説明図である。
FIG. 3 is a schematic explanatory diagram of multidimensional processing according to the first embodiment of the present invention.

【図4】 この発明の実施の形態1を示すカテゴリと実
表との関連を示す説明図である。
FIG. 4 is an explanatory diagram showing a relationship between a category and a base table according to the first embodiment of the present invention.

【図5】 この発明の実施の形態1を示す列と仮想的な
列の構成図である。
FIG. 5 is a configuration diagram of a column and a virtual column according to the first embodiment of the present invention.

【図6】 この発明の実施の形態1を示す列と仮想的な
列との関係を説明する説明図である。
FIG. 6 is an explanatory diagram illustrating a relationship between a column and a virtual column according to the first embodiment of the present invention;

【図7】 この発明の実施の形態1を示すDATE型の
階層構造を表す構造図である。
FIG. 7 is a structural diagram illustrating a DATE-type hierarchical structure according to the first embodiment of the present invention.

【図8】 この発明の実施の形態2を示す集計方法の相
違を示す比較図である。
FIG. 8 is a comparison diagram showing the difference in the counting method according to the second embodiment of the present invention.

【図9】 この発明の実施の形態2を示すカテゴリの内
容を示す構成図である。
FIG. 9 is a configuration diagram showing contents of a category according to the second embodiment of the present invention.

【図10】 この発明の実施の形態2を示す明細データ
ファイルの構造図である。
FIG. 10 is a structural diagram of a specification data file according to the second embodiment of the present invention.

【図11】 この発明の実施の形態2を示すSQL文の
リストである。
FIG. 11 is a list of SQL statements showing the second embodiment of the present invention.

【図12】 この発明の実施の形態2を示す3種類の集
計結果を示す出力リストである。
FIG. 12 is an output list showing three types of counting results according to the second embodiment of the present invention.

【図13】 この発明の実施の形態2を示すゼロ集計の
説明図である。
FIG. 13 is an explanatory diagram of zero counting showing the second embodiment of the present invention.

【図14】 この発明の実施の形態3を示すデータフロ
ー図である。
FIG. 14 is a data flow diagram showing a third embodiment of the present invention.

【図15】 この発明の実施の形態3を示すフローチャ
ートである。
FIG. 15 is a flowchart showing Embodiment 3 of the present invention.

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

3 実表(明細データ)、4 カテゴリ(階層構造情報
テーブル)、12 要素。
3 Base table (detailed data), 4 categories (hierarchical structure information table), 12 elements.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 集計する一単位となる複数の集計項目デ
ータから構成される明細データの順編成によるデータフ
ァイルと上記集計項目データ間の階層構造を予め設定し
た階層構造情報テーブルとを備え、上記集計項目データ
に基づき上記階層構造情報テーブルを参照してその集計
項目データより上位層又は下位層の集計項目データを検
索するステップ、得られた集計項目データをキーとして
上記明細データをソートし上記集計項目データ単位に集
計処理することを特徴とするデータ処理方法。
1. A data file comprising sequential data of detailed data comprising a plurality of tabulated item data as one unit to be tabulated, and a hierarchical structure information table in which a hierarchical structure between the tabulated item data is set in advance. A step of referring to the hierarchical structure information table on the basis of the total item data and searching for the total item data of a higher layer or a lower layer from the total item data; sorting the detailed data by using the obtained total item data as a key; A data processing method characterized by performing an aggregation process in item data units.
【請求項2】 集計する一単位となる複数の集計項目デ
ータから構成される明細データの順編成によるデータフ
ァイルと上記集計項目データ間の階層構造を予め設定し
た階層構造情報テーブルとを備え、上記明細データを全
ての上記集計項目データを含む可能な全ての組み合わせ
ごとに集計し集計データを作成するステップ、上記集計
項目データに基づき上記階層構造情報テーブルを参照し
てその集計項目データより上位層の集計項目データを検
索するステップ、得られた集計項目データをキーとして
上記集計データをソートし上記集計項目データ単位に集
計処理することを特徴とするデータ処理方法。
2. A system according to claim 1, further comprising: a data file based on sequential organization of detailed data composed of a plurality of total item data as one unit to be totalized; and a hierarchical structure information table in which a hierarchical structure between the total item data is set in advance. A step of totalizing the detailed data for every possible combination including the above total item data to create total data, referring to the above hierarchical structure information table based on the above total item data, and referring to the upper layer of the total item data A data processing method comprising: searching for total item data; sorting the total data by using the obtained total item data as a key; and performing a totaling process for each total item data unit.
【請求項3】 集計する一単位となる複数の集計項目デ
ータから構成される明細データの順編成によるデータフ
ァイルと上記集計項目データ間の階層構造を予め設定し
た階層構造情報テーブルとを備え、上記明細データを全
ての上記集計項目データを含む可能な全ての組み合わせ
ごとに集計し集計データを作成するステップ、上記集計
項目データに基づき上記階層構造情報テーブルを参照し
てその集計項目データより上位層の集計項目データを検
索するステップ、得られた集計項目データとその識別記
号を上記明細データに挿入するステップ、上記識別記号
をキーとして上記集計データをソートし上記集計項目デ
ータ単位に集計処理することを特徴とするデータ処理方
法。
3. A data file according to a sequential organization of detailed data composed of a plurality of aggregation item data as one unit to be aggregated, and a hierarchical structure information table in which a hierarchical structure between the aggregation item data is preset. A step of totalizing the detailed data for every possible combination including the above total item data to create total data, referring to the above hierarchical structure information table based on the above total item data, and referring to the upper layer of the total item data A step of retrieving total item data, a step of inserting the obtained total item data and its identification code into the detailed data, a step of sorting the total data using the above identification symbol as a key, and performing a total process in the total item data unit. Characteristic data processing method.
【請求項4】 集計する一単位となる複数の集計項目デ
ータから構成される明細データの順編成によるデータフ
ァイルと上記集計項目データ間の階層構造を予め設定し
た階層構造情報テーブルとを備え、上記明細データを全
ての上記集計項目データを含む可能な全ての組み合わせ
ごとに集計し集計データを作成するステップ、上記集計
項目データから集計対象とする集計項目データを選択す
るステップ、上記集計項目データに基づき上記階層構造
情報テーブルを参照してその集計項目データより上位層
又は下位層の集計項目データを検索するステップ、得ら
れた集計項目データとその識別記号を上記明細データに
挿入するステップ、上記識別記号をキーとして上記集計
データをソートし上記集計項目データ単位に集計処理す
ることを特徴とするデータ処理方法。
4. A data file comprising sequential data of detailed data comprising a plurality of tabulated item data as one unit to be tabulated, and a hierarchical structure information table in which a hierarchical structure between the tabulated item data is preset. Tallying the detailed data for every possible combination including all the above-mentioned total item data to create total data, selecting the total item data to be totaled from the above total item data, based on the above total item data A step of referring to the hierarchical structure information table to search for a total item data of a higher layer or a lower layer from the total item data; a step of inserting the obtained total item data and its identification code into the detailed data; The total data is sorted using the key as a key, and the total processing is performed in the total item data unit. Data processing method.
【請求項5】 上記階層構造情報テーブルには、階層ご
とのレベル名、そのレベルに属する要素名、それらの要
素間の順序関係を含むことを特徴とする請求項1〜請求
項4のいずれかに記載のデータ処理方法。
5. The hierarchical structure information table according to claim 1, wherein a level name for each layer, element names belonging to the level, and an order relation between the elements are included. The data processing method described in 1.
【請求項6】 予め設定された順序により配設された要
素に含まれる上記明細データを任意の選択による上記集
計項目データを含む全ての組み合わせごとに集計するこ
とを特徴とする請求項1〜請求項5のいずれかに記載の
データ処理方法。
6. The method according to claim 1, wherein the detailed data included in the elements arranged in a preset order is totaled for all combinations including the total item data by an arbitrary selection. Item 6. The data processing method according to any one of Items 5.
【請求項7】 上記集計処理による集計値がゼロのとき
はゼロデータを集計値として保持することを特徴とする
請求項1〜請求項6のいずれかに記載のデータ処理方
法。
7. The data processing method according to claim 1, wherein when the total value obtained by the totaling process is zero, zero data is held as the total value.
JP9104830A 1997-04-22 1997-04-22 Data processing method Pending JPH10301935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9104830A JPH10301935A (en) 1997-04-22 1997-04-22 Data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9104830A JPH10301935A (en) 1997-04-22 1997-04-22 Data processing method

Publications (1)

Publication Number Publication Date
JPH10301935A true JPH10301935A (en) 1998-11-13

Family

ID=14391304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9104830A Pending JPH10301935A (en) 1997-04-22 1997-04-22 Data processing method

Country Status (1)

Country Link
JP (1) JPH10301935A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000194710A (en) * 1998-12-25 2000-07-14 Mitsubishi Electric Corp Device and method for synthesizing concept data having tree structure in multidimensional database
JP2002207768A (en) * 2001-01-10 2002-07-26 Shinseiki Technology:Kk Information processing system, its method and recording medium recorded with information processing program operating on computer
US6738761B1 (en) 1999-09-17 2004-05-18 Nec Corporation Information processing system capable of indicating tendency to change
US11042569B2 (en) 2017-09-29 2021-06-22 Oracle International Corporation System and method for load, aggregate and batch calculation in one scan in a multidimensional database environment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06274387A (en) * 1993-03-23 1994-09-30 Nri & Ncc Co Ltd Method for extracting data from data base
JPH08329101A (en) * 1995-05-30 1996-12-13 Fujitsu Ltd Data base system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06274387A (en) * 1993-03-23 1994-09-30 Nri & Ncc Co Ltd Method for extracting data from data base
JPH08329101A (en) * 1995-05-30 1996-12-13 Fujitsu Ltd Data base system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000194710A (en) * 1998-12-25 2000-07-14 Mitsubishi Electric Corp Device and method for synthesizing concept data having tree structure in multidimensional database
US6738761B1 (en) 1999-09-17 2004-05-18 Nec Corporation Information processing system capable of indicating tendency to change
JP2002207768A (en) * 2001-01-10 2002-07-26 Shinseiki Technology:Kk Information processing system, its method and recording medium recorded with information processing program operating on computer
US11042569B2 (en) 2017-09-29 2021-06-22 Oracle International Corporation System and method for load, aggregate and batch calculation in one scan in a multidimensional database environment
US11789978B2 (en) 2017-09-29 2023-10-17 Oracle International Corporation System and method for load, aggregate and batch calculation in one scan in a multidimensional database environment

Similar Documents

Publication Publication Date Title
US10853387B2 (en) Data retrieval apparatus, program and recording medium
US10885112B2 (en) System and method for non-programmers to dynamically manage multiple sets of XML document data
US5701453A (en) Logical schema to allow access to a relational database without using knowledge of the database structure
Engles A tutorial on data base organization
Phipps et al. Automating data warehouse conceptual schema design and evaluation.
Lightstone et al. Physical Database Design: the database professional's guide to exploiting indexes, views, storage, and more
US7925658B2 (en) Methods and apparatus for mapping a hierarchical data structure to a flat data structure for use in generating a report
US7356779B2 (en) Analytical reporting on top of multidimensional data model
US5303367A (en) Computer driven systems and methods for managing data which use two generic data elements and a single ordered file
EP1247165B1 (en) System and method for transforming a relational database to a hierarchical database
US6912540B2 (en) Chaining database records that represent a single customer or multiple customers living in a household
KR20010083096A (en) Value-instance-connectivity computer-implemented database
WO2008009018A2 (en) Spreadsheet-based relational database interface
JP3431482B2 (en) Classification item analysis method and recording medium recording this program
Cecelja Manufacturing Information and Data Systems: Analysis, Design and Practice
Theodoratos et al. Heuristic optimization of OLAP queries in multidimensionally hierarchically clustered databases
JPH10301935A (en) Data processing method
US20030055838A1 (en) Data storing method and data storing structure
JP2780996B2 (en) Query optimization processing method
Chandwani et al. Implementation of star schemas from ER Model
US11216486B2 (en) Data retrieval apparatus, program and recording medium
McFadyen Relational Databases and Microsoft Access 365
Ron Relational Databases and Microsoft Access 365-Version 4.0
Jain Database Management Systems
JPH117402A (en) Method for processing data