JPH01232425A - Group sorting device - Google Patents

Group sorting device

Info

Publication number
JPH01232425A
JPH01232425A JP5845488A JP5845488A JPH01232425A JP H01232425 A JPH01232425 A JP H01232425A JP 5845488 A JP5845488 A JP 5845488A JP 5845488 A JP5845488 A JP 5845488A JP H01232425 A JPH01232425 A JP H01232425A
Authority
JP
Japan
Prior art keywords
group
data
sort
sorting
processing
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
JP5845488A
Other languages
Japanese (ja)
Inventor
Shigeki Hirano
平野 茂木
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.)
Hitachi Ltd
Hitachi KE Systems Ltd
Original Assignee
Hitachi Ltd
Hitachi Keiyo Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd, Hitachi Keiyo Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP5845488A priority Critical patent/JPH01232425A/en
Publication of JPH01232425A publication Critical patent/JPH01232425A/en
Pending legal-status Critical Current

Links

Landscapes

  • Sorting Of Articles (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、パーソナル・コンピュータなどのデータ処理
装置に係り、特に、スプレッド・シート形のデータによ
る作表作業時などに好適なグループソート装置に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processing device such as a personal computer, and particularly relates to a group sorting device suitable for tabulation work using spreadsheet data. .

〔従来の技術J パソコン(パーソナル・コンピュータ)などのデータ処
理装置では、従来から種々のデータソート機能が備えら
れているが、このとき、スプレッド・シート形のデータ
では、その行単位でソートができるようになっているも
のが知られており、その例を、特開昭56−15344
5号公報、特開昭57−〇0757号公報、或いは特開
昭60−84634号公報の開示に見ることができる。
[Prior Art J Data processing devices such as personal computers (personal computers) have traditionally been equipped with various data sorting functions. It is known that the
This can be found in the disclosures of Japanese Patent Application Laid-open No. 57-00757, or Japanese Patent Application Laid-Open No. 60-84634.

第6図は、データ処理装置の一例で1図において、■は
中央処理装置、2はオペレーティングシステム、3はキ
ーボード、4はCRT、5はフロッピーディスクであり
、従来技術によるスプレッドシート形のデータソートテ
ィングでは、第7図に示すようにして処理されていた。
FIG. 6 shows an example of a data processing device. In FIG. 1, ■ is a central processing unit; 2 is an operating system; 3 is a keyboard; 4 is a CRT; In the processing, processing was performed as shown in FIG.

とのm7図に示す処理70が開始されると、まず、最初
に、オペレータはキーボード3を操作し。
When the process 70 shown in FIG. m7 is started, the operator first operates the keyboard 3.

そのデータのソート対象となるキー列、ソート規準(昇
順または降順)、それにソート対象範囲(行範囲)から
なるソートデータを入力する(ステップ71)。
Sort data consisting of a key column to be sorted, a sorting criterion (ascending or descending order), and a sorting range (row range) is input (step 71).

そうすると、このソートデータについて、その妥当性の
チエツクが行われ(ステップ72)、ここでエラーが発
生したときには、ステップ73の処理として、その旨が
CRT4で表示され、エラーの内容が知らされて、再度
、ソートデータの入力操作が要求される。
Then, the validity of this sort data is checked (step 72), and if an error occurs here, as a process in step 73, that fact is displayed on the CRT 4, and the content of the error is notified. The sort data input operation is requested again.

ステップ72での結果がOKとかったら、すなわち、ソ
ート対称となるキー列やソート規準、それにソート対象
範囲のそれぞれに問題がなければ、次にソート規準にし
たがって、まず、昇順または降順に行のソートが実行さ
れる(ステップ74)。
If the result in step 72 is OK, that is, if there are no problems with the key column to be sorted, the sort criteria, or the range to be sorted, then first sort the rows in ascending or descending order according to the sort criteria. A sort is performed (step 74).

そして、その結果がCRT4に、ソート範囲の先頭の行
から順次、表示されるのである(ステップ75)。
The results are then sequentially displayed on the CRT 4 starting from the first row of the sort range (step 75).

従って、この場合、そのソートの対象は1行革位である
ため、そのデータが、互いに関連を有する複数の行を含
む場合であっても、それを複数の行単位でソートするこ
とは、このままではできない。
Therefore, in this case, the target of the sort is a single row, so even if the data includes multiple rows that are related to each other, it is not possible to sort the data in units of multiple rows. Can not.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、スプレッド・シート形のデータにおけ
る行単位でのソートだけを対象としてItす、これとは
階層を異にする1例えば、複数行からなるグループ単位
でのソートについては特に配慮がさ九でおらず、成る特
徴づけにより関連性を有する複数の行単位でのソートを
行なおうどした場合には、かなり煩雑な操作が要求され
るという問題があった。
The above-mentioned conventional technology only deals with sorting by row in spreadsheet data. There is a problem in that when attempting to sort a plurality of rows that are related based on characterizations other than 9, a rather complicated operation is required.

本発明の目的は、複数の階層にわたるグループ分けのも
とてのソートについても、特に複雑な操作を要すること
なく、簡単にソートが行なえるようにした、グループソ
ート装置を提供することにある。
An object of the present invention is to provide a group sorting device that can easily perform the original sorting of grouping across a plurality of hierarchies without requiring particularly complicated operations.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、ソート対象となるデータに所定のグループ
識別Tを付加し、このクループ識別子・によってさらに
グループ代表値を計算し、このグループ代表値によりソ
ートを行なうようことにより達成される。
The above object is achieved by adding a predetermined group identification T to the data to be sorted, further calculating a group representative value using this group identifier, and performing sorting using this group representative value.

〔作 用〕[For production]

ソート対象データのクループ識別子及びグループ代表値
からグループ管理テーブルの作成が可能になり、二の作
成されたグループ管理テーブルを用いることにより1階
層を異にするグループのもとてのソートも演算処理で自
動的に遂行させることができるので、特に煩雑な操作を
必要とすることがなくなる。
It is now possible to create a group management table from the group identifier and group representative value of the data to be sorted, and by using the second created group management table, it is possible to perform arithmetic processing for sorting groups that differ by one level. Since it can be performed automatically, no particularly complicated operations are required.

〔実施例〕〔Example〕

以下1本発明によるグループソート装置について、図示
の実施例により詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A group sorting device according to the present invention will be explained in detail below using illustrated embodiments.

この実施例でも、それが適用されるデータ処理装置のハ
ード構成は、第6図の従来例と同じであるが、そのデー
タ処理のためのソフト構成が異なり、これにより第1図
及び第2図に示す処理が実行されるようになっている。
In this embodiment as well, the hardware configuration of the data processing device to which it is applied is the same as the conventional example shown in FIG. 6, but the software configuration for data processing is different. The processing shown in is now executed.

この実施例では、そのグループソートの実行に際して、
グループ識別子の入力を必要とし、このため、まず、第
1図に示す処理10が実行されるようになっている。
In this example, when performing the group sort,
It is necessary to input a group identifier, and therefore, the process 10 shown in FIG. 1 is executed first.

そこで、この処理10が開始されると、ます。Therefore, when this process 10 is started,

ステップ11では、ソート対象となるデータについて、
その複数行のデータをどのようにしてクループ化してゆ
くか、その規準を決定する。
In step 11, regarding the data to be sorted,
Determine the criteria for how to group the multiple rows of data.

次に、データの中でグループ識別子を入力すべき列(グ
ループ識別列)の決定を行なう(ステップ12)。
Next, a column (group identification column) in which a group identifier is to be input in the data is determined (step 12).

このようにして、グループ規準とグループ識別列とが決
定されたら、次に、これらにしたがって。
Once the group criteria and group identification sequence have been determined in this way, then according to these.

クループ識別子・の入力操作を行ない(ステップ13ン
Enter the group identifier (step 13).

これをCRT4に表示させて確認しながら、ステップ1
5の判断により、データのグループソー[・対象範囲の
全域にわたって繰り返すのである。
While checking this by displaying it on the CRT4, step 1
Based on the judgment in step 5, group sorting of the data is repeated over the entire target range.

このようにして、グループ識別子を付加した状態を第4
図(θ)に示す。この第4図(a)は、ソート対象キー
列がB列、ソート規準が降順、ソート範囲が2行から7
行、グループ識別子としてG1ないしG3を0列に付加
した例について示したものである。
In this way, the state with the group identifier added is
It is shown in the figure (θ). In Fig. 4(a), the key column to be sorted is column B, the sort criterion is descending order, and the sort range is from rows 2 to 7.
This example shows an example in which G1 to G3 are added to column 0 as row and group identifiers.

こうして、グループ識別子を付加する処理10を終了し
たら、次に第2図のソート処理を実行する。
After completing the process 10 for adding group identifiers in this manner, the sorting process shown in FIG. 2 is then executed.

この第2図の処理20が開始さ九ろと、ます。Process 20 in Figure 2 begins at the end.

ステップ21.22.23において、必要なデータの入
力処理操作を行なう。なお、このときの処理操作は、第
7図の従来例におけるステップ71ないし73の場合と
同様であるが、このとき入力すべきデータとしては、ま
ず、従来例と同様に、ソート対象となるキー列、ソート
規準、そ、れにソート対象範囲となるが、それに加えて
、この実施例では、さらに、グループの定義付けを意味
するグループ識別列を入力する。
In steps 21.22.23, necessary data input processing operations are performed. Note that the processing operations at this time are the same as in steps 71 to 73 in the conventional example shown in FIG. In addition to the columns, sorting criteria, and the range to be sorted, in this embodiment, a group identification column that defines the group is also input.

このようにして入力されたソート対象となるキー列、ソ
ートキー列、ソート対象範囲、それにグループ識別列に
、いずれも問題がなければ1次に、グループ識別列の同
一識別子を用いて、ソートキー列の代表値を計算する。
If there are no problems with the key column to be sorted, sort key column, sort target range, and group identification column input in this way, first, use the same identifier of the group identification column to change the sort key column. Calculate representative values.

この代表値としては。This is the representative value.

グループ内での成る列のデータの合計値、平均値。The sum or average value of the data in the columns within the group.

最大値、または最小値などがある。There are maximum values, minimum values, etc.

こうして代表値が求まったら、続いて第3図に示すグル
ープ管理テーブルの作成処理をステップ25で行なう、
この実施例では、上記した代表値として第4図のデータ
におけるB列の売上金額の。
Once the representative values have been determined in this way, the group management table creation process shown in FIG. 3 is then performed in step 25.
In this example, the sales amount in column B in the data in FIG. 4 is used as the representative value.

各グループでの合計値を用いるようになっており。The total value for each group is used.

従って、このグループ管理テーブルは、グループ識別子
と、そのグループに対応したグループ代表値とが対をな
しているもので、例えば、グループ識別子が”05″の
グループの代表値は″500”である。
Therefore, in this group management table, a group identifier and a group representative value corresponding to the group form a pair. For example, the representative value of a group whose group identifier is "05" is "500".

クループ管理テーブルの作成が終ったら、今度は、ステ
ップ26の処理に進み、このテーブルを使用し、そこに
登録しであるグループの代表値をキー列としてソート処
理を行ない、その後、ステップ27で、その処理結果に
基いて対象となるデータを処理し、同一識別子単位に行
データをまとめ、ソート規準にしたがって配列替えし、
結果を所定のメモリに格納し、ステップ28でCRT4
に表示させる。
Once the group management table has been created, the process proceeds to step 26, where this table is used to perform sorting using the representative value of the group registered there as a key column, and then, in step 27, Process the target data based on the processing results, group the row data in units of the same identifier, rearrange it according to the sorting criteria,
The results are stored in a predetermined memory, and in step 28 the CRT 4
to be displayed.

第4図(b)に上記実施例によるソート結果を示す。FIG. 4(b) shows the sorting results according to the above embodiment.

この例は、ソート対象キー列がB列、ソート規準が降順
で、ソート範囲は2行から7行、グループ識別子列が6
列、そして、グループの代表値がB列の売上金額の合計
なので、ソート結果は、グループG3の行データから始
まって、グループG2、そしてグループG1と続く配列
となっており、この結果から、この実施例によれば、所
定のグループごとに、行単位で容易にグループソートが
得られることが理解される。
In this example, the key column to be sorted is column B, the sort criteria is descending, the sort range is 2 to 7 rows, and the group identifier column is 6.
Since the representative value of the column and group is the total sales amount in column B, the sorting result is an array starting from the row data of group G3, followed by group G2, and then group G1. According to the embodiment, it is understood that group sorting can be easily obtained on a row-by-row basis for each predetermined group.

次に、第5図は本発明の他の一実施例における動作処理
のフローチャートで、第7図で説明した従来例の処理と
、第2図で説明した本発明の一実施例の処理とを組合わ
せ、これにより1行革位でのデータソートとグループ化
した複数行単位でのグループソートのいずれでも、任意
に選択してソート処理ができるようにしたものであり、
処理ステップ50を設け、ここでの判断により、ステッ
プ74へ進んでそのまま行単位でのソートを実行するか
、或いはステ゛ツブ21ないし27に進んで。
Next, FIG. 5 is a flowchart of operation processing in another embodiment of the present invention, which shows the processing of the conventional example explained in FIG. 7 and the processing of the embodiment of the present invention explained in FIG. With this combination, it is possible to perform sorting processing by selecting either data sorting on a single row basis or group sorting on multiple grouped rows.
A processing step 50 is provided, and depending on the judgment here, the process directly proceeds to step 74 to perform sorting on a line-by-line basis, or the process proceeds to steps 21 to 27.

グループ41位でのソートに移行するかを決めるように
しである。
It is decided whether to move to sorting based on the 41st place in the group.

なお、最後に処理ステップ75(28)を実行し1行革
位でデータを表示する処理が行なわれるのは、いずれの
場合でも同じである。
Incidentally, in any case, the processing step 75 (28) is finally executed and the data is displayed in one row.

ところで1以上の実施例では、スプレッド・シート形の
データを対象として1本発明によるグループ単位でのソ
ートについて説明したが1本発明は、クループ管理テー
ブルのグループの代表値を複数個、登録させるようにす
ることにより、任意の実作に該当するグループの#を索
に適用することもできる。
By the way, in one or more of the embodiments, sorting by group according to the present invention has been explained for spread sheet data. By doing so, it is also possible to apply the # of the group that corresponds to any actual work to the search.

また、本発明は、ソート対象キーをレコードの任意の位
置に、ソート範囲をレフ−1:範囲に、F:して、グル
ープ識別子をレコードのキーの一部とすることにより、
スプレッド・シート形のデータに限らす、−船釣なデー
タベースなどの、大壁のデータを対象としたグループソ
ートにも、N用可能なことは言うまでもない。
In addition, the present invention sets the sorting target key to an arbitrary position of the record, sets the sorting range to Ref-1: range, F:, and makes the group identifier part of the key of the record.
Needless to say, it is possible to perform group sorting on large scale data, such as databases that are not limited to spreadsheet data.

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

本発明によれば、例えば腹数行のデータ群などを単位と
する。グループ単位によるソー[・が極めて容易にでき
るので、データ処理に際して、七九ぞれのデータがクル
ー・ブ単位で示す1種々の特徴などを対象とする検索な
どにも容易に対応可能になるなどの効果を得ることがで
きる。
According to the present invention, the unit is, for example, a data group of the number of rows of data. Sorting by group is extremely easy, so when processing data, it becomes easy to search for various characteristics that each piece of data shows in groups. effect can be obtained.

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

第1図は本発明によるクループソート装置の一実施例に
おけるグループ誠別了の付加処理を説明するフローチャ
ート、第2図は同じくソート処理を説明するフローチャ
ート、第3図はグループ管理テーブルの説明図、第4図
は本発明の一実施例におけるグループソートの説明図、
第5図は本発明の他の一実施例の動作を説明するフロー
チャート、第6図は本発明が適用されたデータ処理装置
の一例を示すブロック図、第7図は従来例の動作を示す
フローチャートである。 l・・・・中央処理装置、2・・・・オベレーテ、Cン
クシステム、3・・・・キーボード、4・・・・CRT
、5・・・・フロッピーデ、Cスク、10.20・・・
・処理ステップ。 第1図 10〜15:処理ステ・ンフ。 第2図 第4図
FIG. 1 is a flowchart illustrating the addition processing of group classification in an embodiment of the group sorting device according to the present invention, FIG. 2 is a flowchart illustrating the sorting process, and FIG. 3 is an explanatory diagram of the group management table. FIG. 4 is an explanatory diagram of group sorting in an embodiment of the present invention,
FIG. 5 is a flowchart illustrating the operation of another embodiment of the present invention, FIG. 6 is a block diagram illustrating an example of a data processing device to which the present invention is applied, and FIG. 7 is a flowchart illustrating the operation of a conventional example. It is. l... Central processing unit, 2... Oberete, Clink system, 3... Keyboard, 4... CRT
, 5... floppy de, C screen, 10.20...
・Processing step. Figures 10-15: Processing steps. Figure 2 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 1、少くともソート対象キー、ソート規準、それにソー
ト範囲を含むソートデータの入力により、データソート
機能を発揮するデータ処理装置において、ソートすべき
データの所定単位毎に所定のグループ識別子を付加する
入力手段と、このグループ識別子に基いて上記所定単位
毎のデータのグループからそのグループ代表値を計算す
る代表値演算手段を設け、上記グループ代表値に基いて
上記データをグループ毎にソートするように構成したこ
とを特徴とするグループソート装置。
1. Input for adding a predetermined group identifier to each predetermined unit of data to be sorted in a data processing device that performs a data sorting function by inputting sort data including at least sort target keys, sort criteria, and sort range. and representative value calculation means for calculating a group representative value from the group of data in each predetermined unit based on the group identifier, and configured to sort the data into groups based on the group representative value. A group sorting device characterized by the following.
JP5845488A 1988-03-14 1988-03-14 Group sorting device Pending JPH01232425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5845488A JPH01232425A (en) 1988-03-14 1988-03-14 Group sorting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5845488A JPH01232425A (en) 1988-03-14 1988-03-14 Group sorting device

Publications (1)

Publication Number Publication Date
JPH01232425A true JPH01232425A (en) 1989-09-18

Family

ID=13084870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5845488A Pending JPH01232425A (en) 1988-03-14 1988-03-14 Group sorting device

Country Status (1)

Country Link
JP (1) JPH01232425A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0683404A (en) * 1992-01-20 1994-03-25 Internatl Business Mach Corp <Ibm> Apparatus and method for customizing schedule display
US6631380B1 (en) 1999-07-29 2003-10-07 International Business Machines Corporation Counting and displaying occurrences of data records

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0683404A (en) * 1992-01-20 1994-03-25 Internatl Business Mach Corp <Ibm> Apparatus and method for customizing schedule display
US6631380B1 (en) 1999-07-29 2003-10-07 International Business Machines Corporation Counting and displaying occurrences of data records

Similar Documents

Publication Publication Date Title
US20130297568A1 (en) System and Method for Organizing Data
JPH01232425A (en) Group sorting device
JP2002259186A (en) TREE structured index consistency check processing method, program and apparatus
JP3552339B2 (en) Database system
JPH07502617A (en) Method for extracting statistical profiles and usage of statistics created by this method
JP2021071789A (en) Application creation support device
JPH0782429B2 (en) How to merge multiple files
JPH096765A (en) Information processing device
JP2020161044A (en) System, method, and program for managing data
JP2730075B2 (en) Decision support device
JP3008807B2 (en) Data processing device
JP3002017B2 (en) Data processing device
SU1368897A1 (en) Arrangement for finding optimized solutions
JPH07210432A (en) Data arrangement structure conversion method and data arrangement structure conversion system
JP3004067B2 (en) Record classification method for information processing device
JP2749420B2 (en) Database search solution display device
JP2874676B2 (en) Single screen multiple input terminal
JPH0675254B2 (en) Kaiko database operation system
JPH11184729A (en) Bug information management display method and device
Wilson et al. Testing for normality using neural networks
US20040010547A1 (en) User interface and algorithm to handle &#34;unknown&#34; data in card-sorting exercise and cluster analysis
JPH01112467A (en) Logical data structure designing system
JPH05307571A (en) Information retrieval system
JPH05307555A (en) Process flow generating system
JPH05342296A (en) Waveform data display device