JP3348943B2 - Table format conversion method for database search results - Google Patents

Table format conversion method for database search results

Info

Publication number
JP3348943B2
JP3348943B2 JP31825293A JP31825293A JP3348943B2 JP 3348943 B2 JP3348943 B2 JP 3348943B2 JP 31825293 A JP31825293 A JP 31825293A JP 31825293 A JP31825293 A JP 31825293A JP 3348943 B2 JP3348943 B2 JP 3348943B2
Authority
JP
Japan
Prior art keywords
heading
search result
item
database
cell
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.)
Expired - Fee Related
Application number
JP31825293A
Other languages
Japanese (ja)
Other versions
JPH07175818A (en
Inventor
勝 田中
泰文 藤井
尚道 野中
由美子 高橋
啓一 中根
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
Original Assignee
Hitachi 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 filed Critical Hitachi Ltd
Priority to JP31825293A priority Critical patent/JP3348943B2/en
Publication of JPH07175818A publication Critical patent/JPH07175818A/en
Application granted granted Critical
Publication of JP3348943B2 publication Critical patent/JP3348943B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データベースの検索結
果の編集技術に係わり、特に、データベース検索結果を
所望の表形式で出力するのに好適なデータベース検索結
果の表形式変換方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for editing a database search result, and more particularly to a method for converting a database search result into a table format suitable for outputting the database search result in a desired table format. .

【0002】[0002]

【従来の技術】データベースのデータを用いて、ユーザ
が自分の好む表を作り、データベースのデータを有効に
活用するための従来技術が、例えば、特開平03−18
9841号公報に記載されている。この技術では、ユー
ザは、まず、ファイル装置に格納されたリレーショナル
データベースの関係表を、表示装置のウィンドウ上の操
作機能を用いて、関係表の名称を投入することによって
呼び出して表示する。そして、ウィンドウ操作機能のカ
ットアンドペースト等により、この関係表と別ウィンド
ウ上の関係表とを結合する。このようにして、ユーザ
は、操作言語を知らなくとも、自分の好むデータベース
の関係表で、データベースのデータを活用することがで
きる。
2. Description of the Related Art A conventional technique for a user to create his / her favorite table using data in a database and to effectively utilize the data in the database is disclosed in, for example, Japanese Patent Laid-Open Publication No.
No. 9841. In this technique, a user first calls up and displays a relational table of a relational database stored in a file device by inputting a name of the relational table using an operation function on a window of the display device. Then, the relation table and the relation table on another window are connected by cut and paste of the window operation function. In this way, the user can utilize the data of the database in the relation table of the database he likes without knowing the operation language.

【0003】しかし、この技術は、データベースの関係
表同士を対応付けるものであり、データベースのデータ
を、表計算ソフトで作成した表形式に対応付けることは
できない。そのため、データベースからの検索結果を、
表計算ソフトで作成した表形式へ並び変える場合、ユー
ザは、検索結果のフィールド名およびデータと、表形式
の見出しを見較べ、表形式上での位置を確認し、検索結
果のどのデータを表形式のどの位置に貼り付けるかを決
定し、その決定を基にデータを貼り付けるためのプログ
ラムを開発していた。
However, this technique associates relational tables of a database with each other, and cannot associate database data with a table format created by spreadsheet software. Therefore, search results from the database,
When rearranging to the table format created with spreadsheet software, the user compares the field name and data of the search result with the heading of the table format, confirms the position in the table format, and displays any data of the search result in the table. They decided where to paste the data in the format, and based on that decision, developed a program to paste the data.

【0004】[0004]

【発明が解決しようとする課題】解決しようとする問題
点は、従来の技術では、データベース検索したデータベ
ースのデータを、表計算ソフトで作成した表形式へ並び
変える場合、データを、表形式の所定の位置に貼付るた
めのプログラムを開発しなければならない点である。本
発明の目的は、これら従来技術の課題を解決し、データ
ベースと、表計算ソフトで作成した表形式との対応付け
を容易に行なうことを可能とするデータベース検索結果
の表形式変換方法を提供することである。
The problem to be solved is that, in the prior art, when rearranging data in a database searched in a database into a table format created by spreadsheet software, the data is converted to a predetermined format in a table format. The point is that you have to develop a program to attach it to the location. SUMMARY OF THE INVENTION An object of the present invention is to solve the problems of the prior art and provide a method for converting a database search result into a table format, which makes it possible to easily associate a database with a table format created by spreadsheet software. That is.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、本発明のデータベース検索結果の表形式変換方法
は、(1)データベースの検索結果を示す第1の表(図
3における符号7)と表計算ソフトで作成した第2の表
(図4における符号12)を同一画面上に表示し、ドラ
ッグアンドドロップ等の操作による同一画面上の第1の
表の各見出し項目と第2の表の各見出し項目との対応付
けに基づき、第1の表の各見出し項目の第2の表におけ
るセル位置を示す見出し項目対応テーブルを作成し(図
1におけるステップ108)、第1の表の各検索結果の
第2の表への貼り付け時に、この貼り付け対象の検索結
果に対応する第1の表の各見出し項目の第2の表におけ
るセル位置を見出し項目対応テーブルから判読し、この
判読した各見出し項目の第2の表におけるセル位置か
ら、貼り付け対象の検索結果の第2の表における貼り付
け先のセル位置を算出し(図1のステップ113)、こ
の算出した各セル位置に第1の表の各検索結果を貼り付
ける(図1のステップ115)ことにより、データベー
スの検索結果を表計算ソフトで作成した表に貼り付ける
ことを特徴とする。また、(2)上記(1)に記載のデ
ータベース検索結果の表形式変換方法において、図5に
示すように、表作成ソフトで作成した基本寸法の表内で
操作者が指定した(図1のステップ101)2つのセル
位置の内、行列番号が小さい方のセル位置(セルB
(2)202)を第2の表の第1行第1列とし、行列番
号が大きい方のセル位置(セルD(3)203)を第2
の表の検索結果を貼付る領域の開始行開始列とする(図
1のステップ102)ことを特徴とする。また、(3)
上記(1)、もしくは、(2)のいずれかに記載のデー
タベース検索結果の表形式変換方法において、操作者の
指定に基づき(図1のステップ103)、第2の表の見
出し領域に繰り返し用いる見出し項目の先頭セル位置と
繰り返す範囲を示す繰り返し見出しテーブル(図7に図
示)を作成し(図1のステップ104)、第1の表の見
出し項目の第2の表の先頭セル位置への対応付け時に
(図1のステップ110)、繰り返し見出しテーブルを
参照して、この先頭セル位置に対応付けた見出し項目を
第2の表の上記繰り返す範囲の全てのセル位置に対応付
けて示す繰り返し&貼り付けデータ対応テーブルを作成
し(図1のステップ111)、この繰り返し&貼り付け
データ対応テーブルを参照して、第1の表の各検索結果
の上記第2の表への貼り付けを行なう(図1のステップ
115)ことを特徴とする。また、(4)上記(1)か
ら(3)のいずれかに記載のデータベース検索結果の表
形式変換方法において、第2の表における見出し項目
と、この見出し項目の見出し領域に対応付けた第1の表
の見出し項目とを対応付けて表示し(図10に図示)、
操作者による第2の表における見出し項目に対する第1
の表の見出し項目の変更指示に基づき、第1の表の全て
の見出し項目を変更対象の見出し項目の表示位置に表示
し、表示した第1の表の全ての見出し項目から操作者が
選択した見出し項目に、第2の表における見出し項目に
対する第1の表の見出し項目を変更する(図1のステッ
プ108)ことを特徴とする。
In order to achieve the above object, a method of converting a database search result into a table format according to the present invention comprises the following steps: (1) a first table (reference numeral 7 in FIG. 3) indicating a search result of a database; A second table (reference numeral 12 in FIG. 4) created by spreadsheet software is displayed on the same screen, and each entry of the first table and the second table on the same screen are operated by an operation such as drag and drop. Based on the association with each heading item, a heading item correspondence table indicating the cell position of each heading item in the first table in the second table is created (step 108 in FIG. 1), and each search in the first table is performed. At the time of pasting the result to the second table, the cell position in the second table of each heading item of the first table corresponding to the search result to be pasted is read from the heading item correspondence table, and this read is performed. Each heading item From the cell position in the second table, the cell position of the paste destination in the second table of the search result of the paste target is calculated (step 113 in FIG. 1), and the calculated cell position is stored in the first table. By pasting each search result (step 115 in FIG. 1), the search result of the database is pasted on a table created by spreadsheet software. (2) In the table format conversion method of the database search result described in the above (1), as shown in FIG. 5, the operator specifies in the table of the basic dimensions created by the table creation software (see FIG. 1). Step 101) Of the two cell positions, the cell position with the smaller matrix number (cell B
(2) 202) is the first row and first column of the second table, and the cell position (cell D (3) 203) having the larger matrix number is the second cell.
(Step 102 in FIG. 1). Also, (3)
In the tabular conversion method of the database search result according to any one of the above (1) and (2), it is repeatedly used for the heading area of the second table based on the designation of the operator (step 103 in FIG. 1). A repetition heading table (shown in FIG. 7) indicating the head cell position of the heading item and the range to be repeated is created (step 104 in FIG. 1), and the correspondence of the heading item of the first table to the head cell position of the second table At the time of attaching (step 110 in FIG. 1), the repetition & pasting is performed by referring to the repetition heading table and displaying the heading item associated with the head cell position in association with all the cell positions in the repetition range in the second table. An attached data correspondence table is created (step 111 in FIG. 1), and each search result of the first table is referred to the second table with reference to the repeated & pasted data correspondence table. Ri with performing (step 115 in FIG. 1), characterized in. (4) In the method of converting a database search result to a table format according to any one of (1) to (3), the first entry associated with the entry in the second table and the entry area of this entry is provided. Are displayed in association with the heading items of the table (shown in FIG. 10),
First for the heading item in the second table by the operator
All the heading items of the first table are displayed at the display positions of the heading items to be changed based on the instruction to change the heading items of the first table, and the operator selects from all the displayed heading items of the first table. It is characterized in that a heading item in the first table is changed to a heading item in the second table (step 108 in FIG. 1).

【0006】[0006]

【作用】本発明においては、データベースの検索結果で
ある第1の表と、表計算ソフトで作成した第2の表を一
つの画面に同時に表示することにより、画面の切替えが
なくなり、ドラッグ・アンド・ドロップ操作等による指
定を効果的に行うことが可能となる。そして、第2の表
における第1の表の各見出し項目のセル位置をテーブル
で対応付けることにより、データベースの検索結果の各
データを、第2の表の該当セル位置に、自動的に貼付る
ことができる。また、第2の表の見出し領域の幅を、2
つのセル位置から判定することができ、これにより、見
出し領域への対応付けの回数が予め確認でき、一つの見
出し領域に対し、複数の検索結果を対応付けることを防
止することができる。また、第2の表において繰り返し
続く見出し内容の対応付けを、操作者の単位指定と範囲
指定に基づき自動的に行なうので、操作者の対応付け操
作が容易となる。また、第1、および、第2の表のそれ
ぞれの見出し項目の対応付け結果を表示することによ
り、操作者は、対応付けの誤りを容易に見つけることが
でき、さらに、誤りを変更する際には、第1の表の全見
出し項目を表示するので、正しい対応付けへの変更が容
易である。
According to the present invention, the first table, which is the search result of the database, and the second table created by the spreadsheet software are simultaneously displayed on one screen, so that the screen switching is eliminated, and the drag and drop operation is performed. -It is possible to effectively perform designation by a drop operation or the like. Then, by associating the cell positions of each heading item of the first table in the second table with the table, each data of the search result of the database is automatically pasted to the corresponding cell position of the second table. Can be. The width of the heading area of the second table is set to 2
The determination can be made from one cell position, whereby the number of times of association with the heading region can be confirmed in advance, and it is possible to prevent a plurality of search results from being associated with one heading region. In addition, since the association of the contents of the headings repeated in the second table is automatically performed based on the operator's unit designation and range designation, the operator's association operation is facilitated. In addition, by displaying the association result of each heading item in the first and second tables, the operator can easily find an error in the association, and furthermore, when changing the error, Displays all the heading items of the first table, so that it is easy to change to the correct association.

【0007】[0007]

【実施例】以下、本発明の実施例を、図面により詳細に
説明する。図1は、本発明のデータベース検索結果の表
形式変換方法の一実施例を示すフローチャート、図2は
その実施に用いるデータベース検索システムの本発明に
係わる構成の一実施例を示すブロック図である。図2に
おけるデータベース検索システムは、サーバ1、クライ
アント2、ネットワーク6により構成される。サーバ1
は、データベース管理システム(以下、DBMSと記
載)3、磁気ディスク4、DBファイル5により構成さ
れ、また、クライアント2は、データ並び換え処理部
8、データ貼り付け処理部10、表計算ソフト11によ
り構成される。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a flowchart showing one embodiment of a method of converting a database search result into a tabular form according to the present invention, and FIG. 2 is a block diagram showing one embodiment of a configuration according to the present invention of a database search system used in the method. The database search system in FIG. 2 includes a server 1, a client 2, and a network 6. Server 1
Is composed of a database management system (hereinafter referred to as DBMS) 3, a magnetic disk 4, and a DB file 5. The client 2 includes a data rearrangement processing unit 8, a data pasting processing unit 10, and a spreadsheet software 11. Be composed.

【0008】クライアント2からは、サーバ1に対しデ
ータベース検索要求が発行され、検索結果7がクライア
ント2に転送される。検索結果7は、例えば、図3に示
すように、「地区」、「月」、「予算」、「実績」をフ
ィールドとしたテーブルであり、データ並び換え処理部
8により並び換えられ、変換結果9となる。変換結果9
は、データ貼り付け処理部10により表計算ソフト11
に基づき作成された表形式である本発明の第2の表とし
てのユーザ表12に貼り付けられる。ユーザ表12は、
例えば、図4に示すように、「東京」、「神奈川」など
の「地区」を縦軸に、「4月」、「5月」などの「月」
を横軸にとった表形式である。
[0008] The client 2 issues a database search request to the server 1, and the search result 7 is transferred to the client 2. For example, as shown in FIG. 3, the search result 7 is a table in which “district”, “month”, “budget”, and “actual” are fields. It becomes 9. Conversion result 9
Is a spreadsheet software 11 by the data pasting processing unit 10.
Is pasted on the user table 12 as a second table of the present invention, which is a table format created based on the. User Table 12 is
For example, as shown in FIG. 4, the vertical axis is “district” such as “Tokyo” and “Kanagawa”, and “month” such as “April” and “May”.
Is a table format with the horizontal axis.

【0009】このような構成のデータベース検索システ
ムによる本発明に係わる処理動作を、図1のフローチャ
ートに従って説明する。図4におけるユーザ表12のよ
うな表形式を図2の表計算ソフト11で作成する場合、
A1のセル位置を基点として作成するとは限らないの
で、縦見出し200、横見出し201の位置や幅は一定
とはならない。例えば、操作者は、縦横の見出しの位置
を明確にするために、図4のユーザ表12における「セ
ルB2」202と「セルD3」203の2つのセルを指
定する(ステッフ゜101)。この「セルB2」202
の指定により縦横の見出しの基点が判明し、「セルB
2」202、「セルD3」203の2つのセルのX、Y
座標を、次の数1、数2に代入することにより縦横の見
出しの幅を判定する(ステップ102)。
The processing operation according to the present invention by the database search system having such a configuration will be described with reference to the flowchart of FIG. When a table format such as the user table 12 in FIG. 4 is created by the spreadsheet software 11 in FIG.
Since the cell position of A1 is not always created using the base point, the positions and widths of the vertical heading 200 and the horizontal heading 201 are not constant. For example, the operator designates two cells “cell B2” 202 and “cell D3” 203 in the user table 12 in FIG. 4 in order to clarify the position of the vertical and horizontal headings (Step # 101). This “cell B2” 202
Specifies the base point of the vertical and horizontal headings, and displays "Cell B
X and Y of the two cells of “2” 202 and “cell D3” 203
The widths of the vertical and horizontal headings are determined by substituting the coordinates into the following equations (1) and (2) (step 102).

【0010】(数1) 縦見出しの幅=(データ貼り付け位置のX座標)−(表
フォーマット基準位置のX座標) (数2) 横見出しの幅=(データ貼り付け位置のY座標)−(表
フォーマット基準位置のY座標) 本例では、数1により、 縦見出しの幅=D(4)−B(2) (Dはアルファベ
ットの4番目、Bはアルファベットの2番目から) =2 また数2により、 横見出しの幅=3−2 =1 となる。このようにして、見出し領域の幅を、2つのセ
ル位置から判定することができ、見出し領域への対応付
けの回数が予め確認でき、一つの見出し領域に対し、複
数の検索結果を対応付けることを防止することができ
る。
(Formula 1) Vertical heading width = (X coordinate of data pasting position) − (X coordinate of table format reference position) (Formula 2) Horizontal heading width = (Y coordinate of data pasting position) − (Y coordinate of the reference position of the table format) In this example, the width of the vertical heading = D (4) −B (2) (D is the fourth letter of the alphabet, B is the second letter of the alphabet) by Expression 1, and = 2 According to Equation 2, the width of the horizontal heading = 3-2 = 1. In this manner, the width of the heading region can be determined from the two cell positions, the number of times of association with the heading region can be confirmed in advance, and a plurality of search results can be associated with one heading region. Can be prevented.

【0011】この見出し領域の幅を判定した後には、こ
の見出し領域に対応付ける見出しの内容が、同一の内容
で繰り返し続く場合の処理を行なう。すなわち、図6に
示すように、「セルC3,C4」210の「予算」と
「実績」のように、見出しの内容が同一の内容で繰り返
し続く場合には、操作者は、この「セルC3」と「セル
C4」の2つのセルを一単位として指定する(ステップ
103)。このように、操作者が2つのセルを指定する
と、図7に示すように、そのセル位置と繰り返しの向き
を示す「縦繰り返し見出しテーブル」を生成する(ステ
ップ104)。このような繰り返し続く見出しの対応付
けが全て終了したならば、次に、見出しと検索結果のデ
ータの対応付け処理に移る(ステップ105)。
After the width of the heading area is determined, a process is performed when the contents of the heading associated with the heading area continue with the same contents repeatedly. That is, as shown in FIG. 6, when the contents of the heading continue repeatedly with the same contents, such as “budget” and “actual result” in “cells C3 and C4” 210, the operator selects the “cell C3 and C4”. "And" cell C4 "are designated as one unit (step 103). When the operator designates two cells in this way, as shown in FIG. 7, a "vertical repetition index table" indicating the cell position and the repetition direction is generated (step 104). When all the repetition of the association of the headline is completed, the process proceeds to the process of associating the headline with the data of the search result (step 105).

【0012】まず、データベースの検索結果と表形式の
各見出しの対応付けを行なう。すなわち、図8に示すよ
うに、検索結果の「4」220を表形式の「4月」22
2へ、また、検索結果の「東京」221を表形式の「東
京」223へ、それぞれドラッグ・アンド・ドロップに
より対応付ける(ステップ106)。この対応付けによ
り、検索結果のデータと表形式の見出しの内容を、図9
に示すように同時に表示する。この図9において、見出
しの内容は、「千葉」230と「埼玉」231であるの
に対し、検索結果のデータは「埼玉」232と「千葉」
233のように逆になっている。
First, a search result of a database is associated with each heading in a table format. That is, as shown in FIG. 8, “4” 220 in the search result is replaced with “April” 22
2, and “Tokyo” 221 in the search result is associated with “Tokyo” 223 in a table format by drag and drop, respectively (step 106). By this association, the data of the search result and the contents of the tabular headings are shown in FIG.
Are displayed at the same time as shown in FIG. In FIG. 9, the contents of the heading are “Chiba” 230 and “Saitama” 231, whereas the search result data is “Saitama” 232 and “Chiba”
233 is reversed.

【0013】そこで、操作者が、ボタン234をクリッ
クすると、図10に示すようなプルダウンメニュー24
1を表示し、操作者に適切な検索結果のデータ(この場
合、「千葉」240)を選択させ、並び順序を修正する
(ステップ107)。この対応付け処理により、図11
に示すように、検索結果と表形式の縦見出しを対応付け
た「縦見出し項目対応テーブル」を生成する(ステップ
108)。尚、図9、10で示したものは縦見出しの例
だが、横見出しの場合も同様の操作により、図12に示
すように、検索結果と表形式の横見出しを対応付けた
「横見出し項目対応テーブル」を生成する。このように
して、縦横全ての見出しの対応付けが終了したら、貼り
付け対象となる検索結果のデータの対応付け処理に移る
(ステップ109)。
When the operator clicks the button 234, the pull-down menu 24 shown in FIG.
1 is displayed, the operator selects appropriate search result data (in this case, "Chiba" 240), and corrects the arrangement order (step 107). By this association processing, FIG.
As shown in (1), a "vertical heading item correspondence table" in which search results are associated with vertical headings in a table format is generated (step 108). 9 and 10 are examples of a vertical heading, but in the case of a horizontal heading, the same operation is performed as shown in FIG. 12 to associate a search result with a horizontal heading in a table format. A "correspondence table" is generated. In this way, when the association of all the headings is completed, the process proceeds to the association processing of the data of the search result to be pasted (step 109).

【0014】貼り付け対象となる検索結果のデータの対
応付けは、例えば、図13に示すように、検索結果の
「東京」の「4月」の「予算」である「100」250
を、表形式のセル位置252へ、また、検索結果の「東
京」の「4月」の「実績」である「95」251を、表
形式のセル位置253へ、それぞれ操作者によるドラッ
グ・アンド・ドロップに基づき対応付ける(ステップ1
10)。この対応付けに基づき、例えば、図14に示す
縦繰り返しの見出しと、貼り付け対象となる検索結果デ
ータのフィールドとを対応付けた「縦繰り返し&貼り付
けデータ対応テーブル」を生成する(ステップ11
1)。この図14に例として示す「縦繰り返し&貼り付
けデータ対応テーブル」を生成するときは、図7に示す
「繰り返し見出しテーブル」を参照し、検索結果データ
のフィールドが、どの繰り返し見出しに対応するかを判
定する。
For example, as shown in FIG. 13, the data of the search result to be pasted is “100” 250 which is the “budget” of “April” of “Tokyo” of the search result.
To the cell position 252 in the table format, and “95” 251, which is the “result” of “April” of “Tokyo” of the search result, to the cell position 253 in the table format, respectively, by the operator.・ Correspond based on the drop (Step 1
10). Based on this association, for example, a “vertical repeat & paste data correspondence table” is generated in which the vertical repeat headings shown in FIG. 14 are associated with the fields of the search result data to be pasted (step 11).
1). When generating the "vertical repetition & pasted data correspondence table" shown as an example in FIG. 14, refer to the "repetition heading table" shown in FIG. 7 and determine which repetition heading the search result data field corresponds to. Is determined.

【0015】例えば、図13におけるデータ「100」
250の場合、予算フィールドのデータを図5、6にお
ける表形式のセルD3に対応付けるので、図7により判
明する見出しの向きが「縦」でセル位置が(C、3)−
(C、4)との情報から、3行目の見出し内容が対応す
ることとなる。従って、検索結果フィールドが「予算」
のデータは、見出し内容が「予算」、セル位置が(C、
3)ということになる。また、横繰り返しの見出しと貼
り付け対象となる検索結果データのフィールドを対応付
ける場合は、「横繰り返し&貼り付けデータ対応テーブ
ル」を生成する。
For example, data "100" in FIG.
In the case of 250, since the data of the budget field is associated with the cell D3 in the table format in FIGS. 5 and 6, the direction of the heading found in FIG. 7 is “vertical” and the cell position is (C, 3) −
From the information of (C, 4), the headline content on the third line corresponds. Therefore, the search result field is "Budget"
Data has a headline of "Budget" and a cell position of (C,
3) When associating the heading of the horizontal repetition with the field of the search result data to be pasted, a “horizontal repetition & pasting data correspondence table” is generated.

【0016】このようにして、全ての貼り付け対象デー
タの対応付けが終了したら、貼り付けるセル位置の判定
処理に移る(ステップ112)。尚、図6に示すよう
に、繰り返し項目が縦にある表形式の場合、「地区」の
「東京」(セル位置(B、3))の下のセル(セル位置
(B、4))は空欄であるため、図11に示す「縦見出
し項目対応テーブル」では、セル位置(B、3)−
(B、4)として反映されている。すなわち、図6で指
定された繰り返し項目のセル数分だけ「東京」が入力さ
れていると仮定する。そのイメージを図15に示す。
After all the pasting target data have been associated with each other in this manner, the process proceeds to a process for determining the position of the cell to be pasted (step 112). As shown in FIG. 6, in the case of a table format in which repeated items are arranged vertically, cells (cell positions (B, 4)) below "Tokyo" (cell positions (B, 3)) of "district" are Since it is blank, in the “vertical heading item correspondence table” shown in FIG. 11, the cell position (B, 3) −
(B, 4). That is, it is assumed that "Tokyo" has been input for the number of cells of the repeat item specified in FIG. The image is shown in FIG.

【0017】貼り付けるセル位置の判定処理において
は、例えば、図16に示すように、「地区」が「東京」
で「月」が「4」の「予算」のデータである「100」
を貼り付ける場合、図11に示す「縦見出し項目対応テ
ーブル」の「東京」のセル位置(B、3)−(B、4)
と、図14に示す「縦繰り返し&貼り付けデータ対応テ
ーブル」の「予算」のセル位置(C、3)、(C、
5)、(C、7)、…、のAND(論理席演算)によ
り、表形式の縦位置が「3」が、また、図12に示す
「横見出し項目対応テーブル」の「4月」のセル位置
(D、2)より、表形式の横位置が「D」であることを
算出し、従って、図16に示すデータ「100」の貼り
付け先を、図17に示すように、表形式の「セルD3」
260であることを判定し、同様に、図16に示す「東
京」、「4月」の「実績」のデータ「105」は、図1
7に示す表形式の「セルD4」261と判定する(ステ
ップ113)。この対応付け処理を繰り返し、対応付け
を終了した後に(ステップ114)、この対応付けに基
づき、検索結果を表形式に貼り付ける(ステップ11
5)。
In the process of determining the cell position to be pasted, for example, as shown in FIG.
"100" which is data of "budget" with "month" being "4"
Is pasted, the cell position (B, 3)-(B, 4) of "Tokyo" in the "vertical heading item correspondence table" shown in FIG.
And "Budget" cell positions (C, 3), (C, and C) in the "vertical repeat & paste data correspondence table" shown in FIG.
.. (5), (C, 7),... (Logical table operation), the vertical position in the table format is “3”, and “April” in the “horizontal heading item correspondence table” shown in FIG. From the cell position (D, 2), it is calculated that the horizontal position in the table format is “D”. Therefore, the paste destination of the data “100” shown in FIG. 16 is changed to the table format as shown in FIG. "Cell D3"
260, and similarly, the data “105” of “Results” of “Tokyo” and “April” shown in FIG.
It is determined to be “cell D4” 261 in the table format shown in FIG. 7 (step 113). After the association process is repeated and the association is completed (step 114), the search result is pasted in a table format based on the association (step 11).
5).

【0018】以上、図1〜図17を用いて説明したよう
に、本実施例のデータベース検索結果の表形式変換方法
では、データベースの検索結果のデータと、表計算ソフ
トを用いてユーザが作成した任意の表形式のセル位置
を、グラフィカルユーザインタフェース(GUI)を用
いたドラッグ・アンド・ドロップ等の操作で対応づける
だけで、容易に、データベースの検索結果のデータの表
形式への貼り付けができ、データを並び換えて表形式に
貼り付けるためのプログラムを作成する必要がなくな
る。尚、本発明は、図1〜図17を用いて説明した実施
例に限定されるものではなく、その要旨を逸脱しない範
囲において種々変更可能である。例えば、実施例におい
ては、処理装置をデータベースサーバとクライアントを
分けたクライアントサーバシステムを前提としている
が、同一の処理装置にまとめても良い。また、実施例で
は検索対象をデータベースとしたが、SAMファイル、
ISAMファイルなど、各種ファイルからの検索結果を
用いることも可能である。
As described above with reference to FIGS. 1 to 17, in the method of converting a database search result into a tabular form according to the present embodiment, a user creates the database search result data and spreadsheet software. By simply associating cell positions in an arbitrary table format with operations such as drag and drop using a graphical user interface (GUI), it is possible to easily paste database search result data into a table format. This eliminates the need to create a program for rearranging and pasting data in a table format. The present invention is not limited to the embodiment described with reference to FIGS. 1 to 17, and can be variously modified without departing from the gist thereof. For example, in the embodiment, the processing apparatus is assumed to be a client server system in which a database server and a client are separated, but they may be integrated into the same processing apparatus. In the embodiment, the search target is the database, but the SAM file,
It is also possible to use search results from various files such as an ISAM file.

【0019】[0019]

【発明の効果】本発明によれば、データベース検索した
データベースのデータの、表計算ソフトで作成した表形
式への並び変えを、新たなプログラムを開発することな
く、グラフィカルユーザインタフェースを用いて容易な
操作で行なうことができ、データベースと表計算ソフト
を用いた業務における作業効率を向上させることが可能
である。
According to the present invention, it is possible to easily rearrange the data of a database retrieved from a database into a table format created by spreadsheet software using a graphical user interface without developing a new program. It can be performed by operation, and it is possible to improve work efficiency in work using a database and spreadsheet software.

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

【図1】本発明のデータベース検索結果の表形式変換方
法の一実施例を示すフローチャートである。
FIG. 1 is a flowchart showing an embodiment of a method for converting a database search result into a table format according to the present invention.

【図2】図1におけるデータベース検索結果の表形式変
換方法の実施に用いるデータベース検索システムの本発
明に係わる構成の一実施例を示すブロック図である。
FIG. 2 is a block diagram showing an embodiment of a configuration according to the present invention of a database search system used for performing a method of converting a database search result into a table format in FIG. 1;

【図3】図2におけるデータベース検索システムの検索
結果例を示す説明図である。
FIG. 3 is an explanatory diagram showing an example of a search result of the database search system in FIG. 2;

【図4】図3におけるデータベースの検索結果を貼り付
けた表計算ソフトで作成した表形式例を示す説明図であ
る。
FIG. 4 is an explanatory diagram showing an example of a table format created by spreadsheet software in which search results of a database in FIG. 3 are pasted;

【図5】図4における表形式の見出し部分の指定操作用
の画面例を示す説明図である。
FIG. 5 is an explanatory diagram showing an example of a screen for a designation operation of a tabular heading in FIG. 4;

【図6】図4における表形式の繰り返しの見出し部分の
指定操作用の画面例を示す説明図である。
FIG. 6 is an explanatory diagram showing an example of a screen for designating a repetitive heading portion in a table format in FIG. 4;

【図7】本発明に係わる繰り返し見出しテーブルの構成
内容例を示す説明図である。
FIG. 7 is an explanatory diagram showing an example of the configuration of a repetition index table according to the present invention.

【図8】データベースの検索結果と表形式の各見出し部
分の対応付けの指定操作用の画面例を示す説明図であ
る。
FIG. 8 is an explanatory diagram showing an example of a screen for designating an association between a search result of a database and each heading portion in a table format.

【図9】データベース検索結果データと表形式の各見出
し内容の対応付けを表示した画面例を示す説明図であ
る。
FIG. 9 is an explanatory diagram showing an example of a screen on which the correspondence between database search result data and the contents of each heading in a table format is displayed.

【図10】表形式の見出し内容に適するデータベース検
索結果データの対応付けの指定操作用の画面例を示す説
明図である。
FIG. 10 is an explanatory diagram showing an example of a screen for a designation operation of associating database search result data suitable for tabular content in a table format.

【図11】本発明に係わる縦見出し項目対応テーブルの
構成内容例を示す説明図である。
FIG. 11 is an explanatory diagram showing a configuration example of a vertical heading item correspondence table according to the present invention.

【図12】本発明に係わる横見出し項目対応テーブルの
構成内容例を示す説明図である。
FIG. 12 is an explanatory diagram showing an example of the configuration of a side heading item correspondence table according to the present invention.

【図13】データベースの検索結果の貼り付け対象デー
タと表形式との対応付けの指定操作用の画面例を示す説
明図である。
FIG. 13 is an explanatory diagram showing an example of a screen for designating an association between data to be pasted and search results in a database and a table format;

【図14】本発明に係わる繰り返し&貼り付けデータ対
応テーブルの構成内容例を示す説明図である。
FIG. 14 is an explanatory diagram showing an example of the configuration of a repeated & pasted data correspondence table according to the present invention.

【図15】図2におけるクライアント装置内での表形式
の概念を示す説明図である。
FIG. 15 is an explanatory diagram showing a concept of a table format in the client device in FIG. 2;

【図16】図2におけるクライアント装置内でのデータ
ベース検索結果の検索キーを示す説明図である。
FIG. 16 is an explanatory diagram showing search keys of a database search result in the client device in FIG. 2;

【図17】図16における検索キーの表形式内の貼り付
けセル位置を示す説明図である。
17 is an explanatory diagram showing positions of pasted cells in a table format of search keys in FIG. 16;

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

1 サーバ 2 クライアント 3 データベース管理システム 4 磁気ディスク 5 DBファイル 6 ネットワーク 7 検索結果 8 データ並び換え処理部 9 変換結果 10 データ貼り付け処理部 11 表計算ソフト 12 ユーザ表 200 縦見出し 201 横見出し 202 「セルB2」 203 「セルD3」 210 「セルC3,C4」 220 「4」 221 「東京」 222 「4月」 223 「東京」 230 「千葉」 231 「埼玉」 232 「埼玉」 233 「千葉」 234 ボタン 240 「千葉」 241 プルダウンメニュー 250 「100」 251 「95」 252、253 表形式のセル位置 260 「セルD3」 261 「セルD4」 Reference Signs List 1 server 2 client 3 database management system 4 magnetic disk 5 DB file 6 network 7 search result 8 data rearrangement processing unit 9 conversion result 10 data pasting processing unit 11 spreadsheet software 12 user table 200 vertical heading 201 horizontal heading 202 "cell" "B2" 203 "Cell D3" 210 "Cell C3, C4" 220 "4" 221 "Tokyo" 222 "April" 223 "Tokyo" 230 "Chiba" 231 "Saitama" 232 "Saitama" 233 "Chiba" 234 Button 240 "Chiba" 241 Pull-down menu 250 "100" 251 "95" 252, 253 Tabular cell position 260 "Cell D3" 261 "Cell D4"

───────────────────────────────────────────────────── フロントページの続き (72)発明者 野中 尚道 神奈川県川崎市麻生区王禅寺1099番地 株式会社日立製作所システム開発研究所 内 (72)発明者 高橋 由美子 神奈川県川崎市麻生区王禅寺1099番地 株式会社日立製作所システム開発研究所 内 (72)発明者 中根 啓一 神奈川県川崎市麻生区王禅寺1099番地 株式会社日立製作所システム開発研究所 内 (56)参考文献 北郷達郎,基本ソフトMicroso ft Windows3.1 使い勝手 を改良し、アプリ間連携を強化,日経バ イト,日本,日経BP社,1992年 2月 1日,第96号,第152−156頁 岡谷伸司,創造的ビジネスのための 「ファイルメーカーPro」活用講座 (最終回)より賢く効率的に運用するた めに,日経MAC,日本,日経BP社, 1993年12月15日,第9号,第224−233頁 竹山正寿,Windows3 本番! Windowsの未来 Windows アプリケーションの世界,ASCII, 日本,株式会社アスキー,1991年10月 1日,第15巻 第10号,第271−282頁 (58)調査した分野(Int.Cl.7,DB名) G06F 17/30 G06F 19/00 G06F 12/00 JICSTファイル(JOIS)──────────────────────────────────────────────────続 き Continuing from the front page (72) Inventor Naomichi Nonaka 1099 Ozenji Temple, Aso-ku, Kawasaki City, Kanagawa Prefecture Inside Hitachi, Ltd.System Development Laboratory Co., Ltd. Hitachi Systems Development Laboratory (72) Inventor Keiichi Nakane 1099 Ozenji Temple, Aso-ku, Kawasaki-shi, Kanagawa Prefecture Hitachi Systems Development Laboratory Co., Ltd. (56) References Tatsuro Kitago, Basic Software Microsoft Windows 3.1 Improves usability And strengthen application cooperation, Nikkei Byte, Japan, Nikkei BP, February 1, 1992, No. 96, pp. 152-156 Shinji Okaya, “File Maker Pro” Utilization Course for Creative Business (Last episode) It works smarter To in order to operate, the Nikkei MAC, Japan, Nikkei BP, December 15, 1993, No. 9, pp. 224-233 Takeyama Masatoshi, Windows3 production! The future of Windows The world of Windows applications, ASCII, Japan, ASCII Corporation, October 1, 1991, Vol. 15, No. 10, pp. 271-282 (58) Fields investigated (Int. Cl. 7 , DB name) G06F 17/30 G06F 19/00 G06F 12/00 JICST file (JOIS)

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データベースの検索結果を示す第1の表
のそれぞれの検索結果を、表計算ソフトで作成した第2
の表に貼り付ける方法において、上記第1の表と上記第
2の表を同一画面上に表示し、ドラッグアンドドロップ
等の操作による上記同一画面上の第1の表の各見出し項
目と第2の表の各見出し項目との対応付けに基づき、上
記第1の表の各見出し項目の上記第2の表におけるセル
位置を示す見出し項目対応テーブルを作成し、上記第1
の表の各検索結果の上記第2の表への貼り付け時に、該
貼り付け対象の検索結果に対応する上記第1の表の各見
出し項目の上記第2の表におけるセル位置を上記見出し
項目対応テーブルから判読し、該判読した各見出し項目
の上記第2の表におけるセル位置から、上記貼り付け対
象の検索結果の上記第2の表における貼り付け先のセル
位置を算出し、該算出した各セル位置に上記第1の表の
各検索結果を貼り付けることを特徴とするデータベース
検索結果の表形式変換方法。
1. A method according to claim 1, wherein each search result of the first table showing the search result of the database is created by a spreadsheet software.
The first table and the second table are displayed on the same screen, and each heading item of the first table on the same screen and the second table are displayed by an operation such as drag and drop. A heading item correspondence table indicating cell positions of the heading items of the first table in the second table is created based on the correspondence between the heading items of the first table and the first heading table.
At the time of pasting each search result of the table in the second table, the cell position in the second table of each heading item of the first table corresponding to the search result to be pasted is set to the heading item From the correspondence table, the cell position of the paste target in the second table of the search result of the paste target is calculated from the cell position of the read heading item in the second table, and the calculated position is calculated. A table format conversion method for database search results, wherein each search result of the first table is pasted at each cell position.
【請求項2】 請求項1に記載のデータベース検索結果
の表形式変換方法において、上記表作成ソフトで作成し
た基本寸法の表内で操作者が指定した2つのセル位置の
内、行列番号が小さい方のセル位置を上記第2の表の第
1行第1列として、行列番号が大きい方のセル位置を上
記第2の表の上記検索結果を貼付る領域の開始行開始列
とすることを特徴とするデータベース検索結果の表形式
変換方法。
2. The method according to claim 1, wherein the matrix number is smaller among two cell positions designated by the operator in the table of basic dimensions created by the table creation software. The cell position of the second table is defined as the first row and the first column of the second table, and the cell position of the larger matrix number is defined as the start row start column of the area to which the search result is pasted in the second table. Table format conversion method of the database search result which is the feature.
【請求項3】 請求項1、もしくは、請求項2のいずれ
かに記載のデータベース検索結果の表形式変換方法にお
いて、操作者の指定に基づき、上記第2の表の見出し領
域に繰り返し用いる見出し項目の先頭セル位置と繰り返
す範囲を示す繰り返し見出しテーブルを作成し、上記第
1の表の見出し項目の上記第2の表の上記先頭セル位置
への対応付け時に、上記繰り返し見出しテーブルを参照
して、該先頭セル位置に対応付けた見出し項目を上記第
2の表の上記繰り返す範囲の全てのセル位置に対応付け
て示す繰り返し&貼り付けデータ対応テーブルを作成
し、該繰り返し&貼り付けデータ対応テーブルを参照し
て、上記第1の表の各検索結果の上記第2の表への貼り
付けを行なうことを特徴とするデータベース検索結果の
表形式変換方法。
3. The method according to claim 1, wherein the heading item is used repeatedly in the heading area of the second table based on an operator's specification. A repetition heading table showing the head cell position and the repetition range of the first table is created, and when the heading item of the first table is associated with the head cell position of the second table, by referring to the repetition heading table, A repetition & pasting data correspondence table is created in which the heading items associated with the head cell position are associated with all the cell positions in the repetition range of the second table, and the repetition & pasting data correspondence table is created. A table format conversion method for database search results, wherein each of the search results of the first table is attached to the second table with reference to the table.
【請求項4】 請求項1から請求項3のいずれかに記載
のデータベース検索結果の表形式変換方法において、上
記第2の表における見出し項目と、該見出し項目の見出
し領域に対応付けた上記第1の表の見出し項目とを対応
付けて表示し、操作者による上記第2の表における見出
し項目に対する上記第1の表の見出し項目の変更指示に
基づき、上記第1の表の全ての見出し項目を変更対象の
見出し項目の表示位置に表示し、該表示した上記第1の
表の全ての見出し項目から操作者が選択した見出し項目
に、上記第2の表における見出し項目に対する上記第1
の表の見出し項目を変更することを特徴とするデータベ
ース検索結果の表形式変換方法。
4. The method of converting a database search result into a table format according to claim 1, wherein the heading item in the second table and the heading area associated with the heading area of the heading item are set. The heading items of the first table are displayed in association with the heading items of the first table, and all the heading items of the first table are displayed based on an operator's instruction to change the heading items of the first table with respect to the heading items in the second table. Is displayed at the display position of the heading item to be changed, and the heading item selected by the operator from all the displayed heading items of the first table is added to the heading item in the second table.
A table format conversion method for database search results, characterized by changing a heading item of a table.
JP31825293A 1993-12-17 1993-12-17 Table format conversion method for database search results Expired - Fee Related JP3348943B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31825293A JP3348943B2 (en) 1993-12-17 1993-12-17 Table format conversion method for database search results

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31825293A JP3348943B2 (en) 1993-12-17 1993-12-17 Table format conversion method for database search results

Publications (2)

Publication Number Publication Date
JPH07175818A JPH07175818A (en) 1995-07-14
JP3348943B2 true JP3348943B2 (en) 2002-11-20

Family

ID=18097138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31825293A Expired - Fee Related JP3348943B2 (en) 1993-12-17 1993-12-17 Table format conversion method for database search results

Country Status (1)

Country Link
JP (1) JP3348943B2 (en)

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
北郷達郎,基本ソフトMicrosoft Windows3.1 使い勝手を改良し、アプリ間連携を強化,日経バイト,日本,日経BP社,1992年 2月 1日,第96号,第152−156頁
岡谷伸司,創造的ビジネスのための「ファイルメーカーPro」活用講座(最終回)より賢く効率的に運用するために,日経MAC,日本,日経BP社,1993年12月15日,第9号,第224−233頁
竹山正寿,Windows3 本番!Windowsの未来 Windowsアプリケーションの世界,ASCII,日本,株式会社アスキー,1991年10月 1日,第15巻 第10号,第271−282頁

Also Published As

Publication number Publication date
JPH07175818A (en) 1995-07-14

Similar Documents

Publication Publication Date Title
US8161401B2 (en) Intermediate viewer for transferring information elements via a transfer buffer to a plurality of sets of destinations
JPH01180062A (en) Document shaping device
JP2002007951A (en) Slip input method, its execution device, and storage medium recording its process program
JPH08202735A (en) Method for generating and displaying data for retrieval for information retrieving device and information retrieving method
JP3348943B2 (en) Table format conversion method for database search results
JP2006510961A (en) System, method and computer program product for changing the graphical representation of data entities and relational database structures
US20080270985A1 (en) Database application assembly and preparation
JPH02284264A (en) Interactive screen design backup system
US7810068B2 (en) Paste by example
JP2575664B2 (en) Screen control method
JPH0635987A (en) Device and mehtod for preparing circuit diagram
JPS63157228A (en) Hierarchical prosing system
JP3216951B2 (en) Finite element mesh generator
JP2978178B2 (en) Document creation apparatus and control method thereof
JPH02143325A (en) Window displaying system
JPH087012A (en) Method and device for editing output mode of data
JPH03188556A (en) Automatic document preparing system
CN115509665A (en) Method, device, medium and equipment for recording control in window
JPH09305355A (en) Device and method for information input
JP3335372B2 (en) Character string replacement processing apparatus and method
JPH08292862A (en) Direct display system for corresponding item
JP2002269152A (en) Device and method for preparing flow diagram, device and method for presenting page information and information recording medium
JPH05346940A (en) Data base retrieval system
JPH03189864A (en) Screen display method in logical structure editing device for document
JPH09198234A (en) Software management system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees