JP3627030B2 - Data extraction system and computer-readable recording medium therefor - Google Patents

Data extraction system and computer-readable recording medium therefor Download PDF

Info

Publication number
JP3627030B2
JP3627030B2 JP27772298A JP27772298A JP3627030B2 JP 3627030 B2 JP3627030 B2 JP 3627030B2 JP 27772298 A JP27772298 A JP 27772298A JP 27772298 A JP27772298 A JP 27772298A JP 3627030 B2 JP3627030 B2 JP 3627030B2
Authority
JP
Japan
Prior art keywords
query
extraction condition
data
unit
execution
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
JP27772298A
Other languages
Japanese (ja)
Other versions
JP2000112951A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP27772298A priority Critical patent/JP3627030B2/en
Publication of JP2000112951A publication Critical patent/JP2000112951A/en
Application granted granted Critical
Publication of JP3627030B2 publication Critical patent/JP3627030B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は、デ−タ抽出システムおよびそのためのプログラムを記憶した記録媒体に関し、特に、抽出対象名および抽出条件項目から構成される問合せ(例えば後述のクエリ)に基づいてデ−タベースを検索することにより、当該問合せに対応のデ−タを抽出するデ−タ抽出システムに関する。
【0002】
デ−タウェアハウスなどのデ−タベースに蓄えられた膨大な情報から所望のデ−タを抽出する場合、デ−タ抽出用の複数の問合せを用い、また、これらの抽出条件項目値をリアルタイムに変更して新たな問合せ内容に基づくデ−タ抽出を所定時間実行し、その結果を多角的に分析・管理することが通常である。また、抽出条件項目値の変更は問合せの編集作業としても行なわれる。
【0003】
そのため、複数の問合せにまたがる抽出条件項目値の変更処理を簡単な操作で効率的に行なえること、さらには変更処理後の問合せの実行時間の目安をあらかじめ表示して作業者の時間利用の効率化を図ることが望ましく、本発明はこのような要請に応えるものである。
【0004】
【従来の技術】
従来、デ−タベースのクエリ支援ツ−ルなどのデ−タベース抽出装置において、複数クエリの新たな連続実行やクエリ全体の編集作業などの際に該当クエリの抽出条件を変更する場合には、当該クエリの一つ一つを単独で選択して表示し、その内容を変更していた。
【0005】
すなわち、最初の対象クエリを定義部から取り出して表示装置に表示し、そこで当該対象クエリの内容を変更するとともにこの変更後の内容で定義部を更新し、続いて次の対象クエリを定義部から取り出して第1の対象クエリのときと同じように表示,変更、更新の各処理を実行することを、すべての対象クエリに繰り返していた。
【0006】
また、複数の対象クエリに基づくデ−タ抽出作業にあたっては、リアルタイムで試行錯誤的に抽出条件項目値の変更、クエリの実行、実行結果の確認のサイクルを繰り返すことが多く、作業者にとってすべての対象クエリに対する実行結果が出るまでの時間が想定しずらかった。
【0007】
図10は、従来のクエリ連続実行定義(マクロ)例およびクエリ編集例を示す説明図であり、
・(a) のマクロ例では、操作画面上のクエリ一覧から選択したクエリの連続実行を実行ボタンのクリックなどで指示し、
・(b) のクエリ編集例では、操作画面上のクエリ一覧から選択した一つのクエリ(例えば「売上状況」)の編集を編集ボタンのクリックなどで指示して当該選択クエリの定義内容を画面表示してから、この画面上で「年度」や「店舗名」などの抽出条件を必要に応じて変更する。
【0008】
【発明が解決しようとする課題】
このように、従来のデ−タ抽出システムにおいて前述の問合せに相当する複数のクエリの抽出条件を変更する場合には、当該クエリの一つ一つを単独で選択して表示した上でその内容を変更するといったステップを取らなければならず、別々のクエリである「売上状況」および「仕入状況」に共通する「店舗名」などの抽出条件を同時に比較することができないので、作業者の思考が中断してしまい、選択クエリ同士の共通抽出条件の変更処理を効率的に行なえないという問題点があった。
【0009】
また、作業者は、複数クエリの連続実行の所要時間を想定することがむずかしいため、この連続実行が終了するまでの不特定の時間、端末の前で拘束されてしまうという問題点があった。
【0010】
そこで、本発明では、選択した複数の問合せをそれぞれの構成要素である抽出対象名や抽出条件項目の単位で一覧表示し、さらにはこの一覧表示上での抽出条件項目ごとの個別変更/一括変更を指定することにより、別々の問合せにまたがる抽出条件の比較対象や、その変更形式の選択を可能として、複数問合せの編集作業時や連続実行時における当該抽出条件の変更処理の効率化を図ることを目的とする。
【0011】
また、複数の問合せについて、それぞれの過去の実行所要時間も併せて一覧表示することにより、複数問合せの抽出条件変更後の新たな連続実行に先立ってその所要時間を作業者に想定させ、端末前での作業者の無為な拘束時間をより少なくすることを目的とする。
【0012】
【課題を解決するための手段】
本発明は、この課題を次のようにして解決する。
(1)検索対象名および、検索対象についての抽出条件項目から構成される問合わせに基づいてデータベースを検索することにより、当該問合わせの実行結果データを抽出するデータ抽出システムにおいて、前記問合わせの内容データが前記検索対象名の単位で記述された問合わせ定義部から、選択済みの複数の前記検索対象名それぞれに対応した前記内容データを取得して保持する問合わせ管理部と、前記問合わせ管理部に保持された複数の前記内容データを前記抽出条件項目ごとに一覧表示する表示部と、前記表示部で一覧表示された前記内容データの変更入力処理を実行する入力部と、を設ける。
(2)上記(1)において、前記問合わせごとのそれまでの実行所要時間を記憶した時間管理テーブルを設け、前記問合わせ管理部は、前記問合わせごとの前記実行所要時間を前記時間管理テーブルから取り出して前記表示部に表示させる。
(3)上記(1),(2)において、前記問合わせ管理部は、複数の前記問合わせについて、前記入力部からの個別/一括の変更指示に基づいて前記抽出条件項目データの変更処理を実行する。
【0013】
本発明によれば、上記(1)のように、選択した複数の問合せの抽出条件項目を管理するとともに、当該問合せを抽出対象名や抽出条件項目の単位で一覧表示しているので、作業者はこの一覧表示をみながら抽出条件の変更処理を短時間で正確に行なうことができる。
【0014】
この一覧表示にあたって、一つの問合せ内容を同一行に、同じ抽出条件項目を同一列に表示するマトリックス形式で行ない、さらには抽出条件項目値が存在しないブランクセルと他の存在セルとを区別する形で表示する、例えばブランクセルを網かけ表示したり特定色で表示することにより、抽出条件の一覧性を高めることができる。
【0015】
また、上記(2)のように、複数の問合せそれぞれの過去の実行所要時間も併せて一覧表示しているので、作業者は、複数問合せの抽出条件変更後の新たな連続実行の所要時間の目安をつけることができる。
【0016】
また、上記(3)のように、抽出条件項目値の一括変更処理を抽出条件項目ごとに行なえるので、抽出条件変更操作が簡便化され、変更処理時間を短縮することができる。さらには、変更したい抽出条件セルを直接指定してその値を変更可能とすることにより利便性が一段と高まる。
【0017】
また、複数の問い合わせの連続実行を指示した場合には、すでに問い合わせ管理部に管理されている当該問い合わせの抽出条件項目データを用いた検索が継続して行われる
【0018】
本発明は、これらの各機能をコンピュ−タに実現させるためのプログラムを格納したコンピュ−タ読み取り可能なプログラム記録媒体も対象としている。
【0019】
【発明の実施の形態】
図1乃至図9を用いて本発明の実施の形態を説明する。
なお、これらの図を用いた以下の記載では、説明の便宜上、デ−タベ−ス用言語としてSQL(structured query language) を用い、また、上記問合せの一例としてのクエリを用いる。
【0020】
図1は、マトリックス形式の表示画面例を示す説明図である。
この表示画面例では、後述のクエリ定義部(図2参照)から読み出した、
・サ−ビス状況
・売上状況
・仕入状況
の各クエリ(図3参照)の内容(返品理由、売上年度、店舗名などの抽出条件項目の内容)や、当該クエリの過去の実行所要時間およびその合計時間などをマトリックス形式で表示している。
【0021】
また、クエリ名単位ごとの過去の実行所要時間や抽出条件項目を同一行に表示し、抽出条件項目単位ごとの返品理由、売上年度、店舗名などを同一列に表示している。なお、空白セルは抽出条件値なしのセルである。
【0022】
例えば「売上状況」のクエリに関しては、
・売上年度としての「1994上期」
・店舗面としての「本店」
の抽出条件を設定し、返品理由に関する抽出条件は設定していない。さらには、この抽出条件に基づく過去のデ−タベース検索の実行所要時間の「2分10秒」も表示している。
【0023】
また、画面上のボタンとして、
・特定セルの個別変更と抽出条件項目単位の一括変更を選択する切替指定ボタン1
・クエリ連続実行一覧やクエリ定義一覧(以下の説明では必要に応じて「クエリ連続実行一覧など」という。)を画面表示するための追加、図示のマトリックス表示部分を行単位で消去するための削除や、抽出条件の変更内容の全体を確定するための終了などの各機能を持つ編集ボタン2
・変更後の抽出条件を後述のクエリ定義部10(図2参照)に記憶するための保持や、抽出条件の値に基づく各クエリの連続実行(デ−タベース検索処理)に移行するための実行などの各機能を持つ操作ボタン3
などを有している。
【0024】
クエリ連続実行一覧は過去に連続実行した複数クエリ名の組合せリストであり、またクエリ定義一覧は定義済クエリ名のリスト(図10参照)であり、それぞれ一覧形式で後述のマトリックス管理部21(図2参照)に保持される。また、それまでの個々のクエリ連続実行時の複数クエリ名はクエリ定義部10(図2参照)に保持されている。
【0025】
図1の表示画面で例えば「売上状況」および「仕入状況」の店舗名を「名古屋店」に変更したい場合には、図示のように店舗名の切替指定ボタン1を「一括」に切り替える操作と、店舗名が設定されている任意のセルに「名古屋店」を更新入力する操作とを任意の順序で行なえばよい。
【0026】
また、「仕入状況」の店舗名を「札幌店」と「名古屋店」の二店に変更したい場合には、図示とは逆に店舗名の切替指定ボタン1を「個別」に切り替える操作と、「仕入状況」の店舗名セルに「名古屋店」を追加入力する操作とを任意の順序で行なえばよい。
【0027】
図2は、デ−タ抽出システムの全体構成を示す説明図であり、
10は各クエリの内容(図3参照)を記述したクエリ定義部、
20はデ−タ抽出装置、
21は利用者が選択したクエリのマトリックス管理部、
22は選択クエリそれぞれのクエリ名や抽出条件項目などを記憶したマトリックス管理テ−ブル、
23は選択クエリの連続実行や選択クエリそれぞれの実行所要時間の監視を指示するクエリ実行部、
24はクエリを実行したときの所要時間を記憶する時間管理テ−ブル、
25は選択クエリの実行結果を保持する結果出力部、
30はクエリ実行部23からの指示に基づいてクエリの実行所要時間を求める時間監視装置、
40はクエリ実行部23からの指示に基づいてクエリを実行するDBMS(デ−タベ−ス管理システム)、
50は抽出対象であるDB(デ−タベ−ス)、
60はマトリックス管理部21に対応の画面やキ−ボ−ドなどの入出力装置、
70は結果出力部に対応の画面やプリンタなどの出力装置、
をそれぞれ示している。
【0029】
利用者は、入出力装置60の画面上に表示されるクエリ連続実行一覧など(図示省略)からデ−タベ−ス検索に用いるクエリを選択してそれぞれの定義内容を当該画面にマトリックス表示させ(図1参照)、そこで前述のような抽出条件項目値の変更処理を行なった上で当該クエリをDBMS40に実行させる。クエリ連続実行一覧など(クエリ連続実行一覧やクエリ定義一覧)は前述のようにマトリックス管理部21に保持されている。
【0030】
また、DBMS40の実行結果を出力装置70で確認するとともに、変更後の抽出条件のクエリ定義部10への反映を入出力装置60から指示する。もっとも変更後の抽出条件をクエリ定義部10に反映させてそれまでのクエリ内容を更新するかどうかは任意である。
【0031】
図2のデ−タ抽出システムにおいて、
・クエリ定義部10や時間監視装置30をデ−タ抽出装置20に含めたり、
・入出力装置60と出力装置70を共通化する、
ようにしてもよい。
【0032】
図3は、クエリの定義例を示す説明図である。
各クエリは「select」の後に抽出項目名を指定し、「from」の後に検索対象を指定し、「where 」の後に抽出条件項目名およびその値を指定している。
【0033】
図4は、マトリックス管理テ−ブル22の概要を示す説明図であり、22aは変更指定フラグ、22bは抽出条件項目名、22cはクエリ名、22dは実行所要時間、22eは抽出条件項目値、22fは実行所要時間の合計値をそれぞれ示している。図示の内容は図1の表示画面に対応している。
【0034】
図5は、時間管理テ−ブル24の概要を示す説明図である。
図示の内容は図1の各クエリ(サ−ビス状況、売上状況、仕入状況など)の過去の実行所要時間である。
【0035】
図6は、デ−タ抽出用の対象クエリを選択、表示するときの処理手順を示す説明図であり、その内容は次のようになっている。なお、ステップ(12)乃至(14)の順序、およびステップ(15),(16) の順序は任意である。
(11)操作画面上のクエリ連続実行一覧など(クエリ連続実行一覧やクエリ定義一覧)から対象クエリを選択して、次のステップに進む。
(12)選択された各クエリの「クエリ名」をマトリックス管理テ−ブル22に登録して、次のステップに進む。
(13)選択された各クエリの内容をクエリ定義部10から読み込んでワ−ク領域に保持して、次のステップに進む。なお、ステップ(11)での選択がクエリ連続実行一覧の場合には、前述のように当該選択に対応の各クエリ名がクエリ定義部10に保持されているのでそれらの内容を連続して読み込むことになる。
(14)選択クエリの総数を定数Mに代入し、また「1」を変数Nに代入して、次のステップに進む。
(15)N番目のクエリのすべての抽出条件項目に対して、
・それが既出の項目の場合は、マトリックス管理テ−ブル22の当該項目列のセルに当該項目の値を入れ、
・それが初めての項目の場合は、マトリックス管理テ−ブル22のに新たな項目列を追加してそこに当該項目名とその値を入れ、
次のステップに進む。
(16)時間管理テ−ブル24からN番目のクエリの実行所要時間を求めてマトリックス管理テ−ブル22の当該クエリの実行時間セル22dに入れて、次のステップに進む。
(17)「N≧M」であるかどうかを判断し、「YES 」の場合はステップ(19)に進み、「NO」の場合は次のステップに進む。
(18)「N+1→N」として、ステップ(15)に戻る。
(19)マトリックス管理テ−ブル22の各実行時間セル22dに入っている値を加算して実行時間合計セル22fに入れ、次のステップに進む。
(20)マトリックス管理テ−ブル22の内容を入出力装置60に画面表示して、一連の処理を終了する。
【0036】
図7は、デ−タ抽出条件を変更するときの処理手順を示す説明図であり、その内容は次のようになっている。なお、ステップ(31)の処理をステップ(33)の次に実行する手順にしてもよい。
(31)切替指定ボタン1に対するクリック操作などにより個別/一括変更を指定し、その内容をマトリックス管理テ−ブル22の変更指定フラグ22aに反映させて、次のステップに進む。
(32)ポインティングデバイスまたはカ−ソル移動キ−などで変更対象セルの位置を指定して、次のステップに進む。
(33)入出力装置60からデ−タ抽出条件の変更内容を入力して、次のステップに進む。
(34)当該列の変更指定フラグ22aが個別、一括の何れに設定されているかを判断し、「個別」の場合は次のステップに進み、「一括」の場合はステップ(36)に進む。
(35)マトリックス管理テ−ブル22の変更対象セルの内容をステップ(33)の変更値で更新して、一連の処理を終了する。
(36)変更対象セルが属する列、すなわち抽出条件項目を求めて、次のステップに進む。
(37)マトリックス管理テ−ブル22の当該列の各セル(空白セルは除く)の内容をステップ(33)の変更値で更新して、一連の処理を終了する。
【0037】
図8は、クエリを実行するときの処理手順を示す説明図であり、その内容は次のようになっている。なお、ステップ(54),(55) の順序は任意である。
(51)デ−タ抽出条件の変更後、操作ボタン3の「実行」をクリックして、次のステップに進む。
(52)選択クエリの総数を定数Mに代入し、また「1」を変数Nに代入して、次のステップに進む。
(53)N番目のクエリについて、その実行所要時間の監視を時間監視装置30に依頼し、また、その実行をDBMS40に指示して、次のステップに進む。
(54)当該クエリの実行結果をDBMS40から受け取り結果出力部25に保持して、次のステップに進む。
(55)当該クエリの実行所要時間を時間監視装置30から受け取って、時間管理テ−ブル24の対応セルに記憶するとともに、マトリックス管理テ−ブル22の対応セルに記憶して、次のステップに進む。
(56)「N≧M」であるかどうかを判断し、「YES 」の場合は一連の処理を終了し、「NO」の場合は次のステップに進む。
(57)「N+1→N」として、ステップ(53)に戻る。
【0038】
図9は、コンピュ−タ読み取り可能な記録媒体からプログラムを読み取って実行するコンピュ−タシステムの概要を示す説明図であり、80はコンピュ−タシステム、81はCPUやディスクドライブ装置などを内蔵した本体部、82は本体部81からの指示により画像を表示するディスプレイ、83は表示画面、84はコンピュ−タシステム80に種々の情報を入力するためのキ−ボ−ド、85は表示画面83上の任意の位置を指定するマウス、86は外部のデ−タベ−ス(DASDなどの回線先メモリ)、87は外部のデ−タベ−ス86にアクセスするモデム、88はCD−ROMやフロッピ−ディスクなどの可搬型記録媒体をそれぞれ示している。
【0039】
プログラムを格納する記録媒体としては、
・プログラム提供者側のデ−タベ−ス86(回線先メモリ)
・可搬型記録媒体88
・本体部81側のメモリ
などのいずれでもよく、当該プログラムは本体部81にロ−デイングされてその主メモリ上で実行される。
【0040】
【発明の効果】
本発明は、このように、選択した複数の問合せの抽出条件項目を管理するとともに、当該問合せのそれぞれを抽出対象名や抽出条件項目の単位で一覧表示しているので、作業者はこの一覧表示をみながら抽出条件の変更処理を短時間で正確に行なうことができる。
【0041】
この一覧表示にあたって、一つの問合せ内容を同一行に、同じ抽出条件項目を同一列に表示するマトリックス形式で行ない、さらには抽出条件項目値が存在しないブランクセルと他の存在セルとを区別する形で表示する、例えばブランクセルを網かけ表示したり特定色で表示することにより、抽出条件の一覧性を高めることができる。
【0042】
また、複数の問合せそれぞれの過去の実行所要時間も併せて一覧表示しているので、作業者は、当該問合せの抽出条件変更後の新たな連続実行の所要時間の目安をつけることができる。
【0043】
また、抽出条件項目値の一括変更処理を抽出条件項目ごとに行なえるので、抽出条件変更操作が簡便化され、変更処理時間を短縮することができる。さらには、変更したい抽出条件セルを直接指定してその値を変更可能とすることにより利便性が一段と高まる。
【0044】
また、複数の問合せの連続実行を指示した場合には、すでに問合せ管理手段に管理されている当該問合せの抽出条件項目値を用いた連続実行を行なうことができる。
【図面の簡単な説明】
【図1】本発明の、マトリックス形式の表示画面例を示す説明図である。
【図2】本発明の、デ−タ抽出システムの全体構成を示す説明図である。
【図3】本発明の、クエリの定義例を示す説明図である。
【図4】本発明の、マトリックス管理テ−ブルの概要を示す説明図である。
【図5】本発明の、時間管理テ−ブルの概要を示す説明図である。
【図6】本発明の、デ−タ抽出用の対象クエリを選択、表示するときの処理手順を示す説明図である。
【図7】本発明の、デ−タ抽出条件を変更するときの処理手順を示す説明図である。
【図8】本発明の、クエリを実行するときの処理手順を示す説明図である。
【図9】本発明の、コンピュ−タ読み取り可能な記録媒体からプログラムを読み取って実行するコンピュ−タシステムの概要を示す説明図である。
【図10】従来の、クエリ連続実行定義(マクロ)例およびクエリ編集例を示す説明図である。
【符号の説明】
図1および図2において、
1:個別変更/一括変更の切替指定ボタン
2:編集ボタン
3:操作ボタン
10:クエリ定義部
20:デ−タ抽出装置
21:クエリのマトリックス管理部
22:マトリックス管理テ−ブル
23:クエリ実行部
24:時間管理テ−ブル
25:結果出力部
30:時間監視装置
40:DBMS(デ−タベ−ス管理システム)
50:DB(デ−タベ−ス)
60:画面キ−ボ−ドなどの入出力装置
70:画面やプリンタなどの出力装置
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data extraction system and a recording medium storing a program therefor, and in particular, searches a database based on a query (for example, a query described later) composed of an extraction target name and an extraction condition item. Thus, the present invention relates to a data extraction system for extracting data corresponding to the inquiry.
[0002]
When extracting desired data from a large amount of information stored in a data base such as a data warehouse, multiple queries for data extraction are used, and these extraction condition item values are real-time. Usually, data extraction based on new inquiry contents is executed for a predetermined time, and the results are analyzed and managed in a multifaceted manner. The change of the extraction condition item value is also performed as a query editing operation.
[0003]
Therefore, it is possible to change the extraction condition item value across multiple queries efficiently with a simple operation.In addition, the estimated execution time of the query after the change processing is displayed in advance to improve the efficiency of workers' time use. Therefore, the present invention meets such a demand.
[0004]
[Prior art]
Conventionally, in a database extraction device such as a database query support tool, when changing the extraction condition of a corresponding query at the time of new continuous execution of multiple queries or editing of the entire query, Each query was selected and displayed individually, and its contents were changed.
[0005]
That is, the first target query is taken out of the definition part and displayed on the display device, where the content of the target query is changed and the definition part is updated with the changed content, and then the next target query is updated from the definition part. The process of taking out and executing the display, change, and update processes in the same manner as in the first target query was repeated for all target queries.
[0006]
In addition, when extracting data based on multiple target queries, the extraction condition item value change, query execution, and execution result confirmation cycle are often repeated in a trial and error manner in real time. It was difficult to assume the time until the execution result for the target query was obtained.
[0007]
FIG. 10 is an explanatory diagram showing a conventional query continuous execution definition (macro) example and a query editing example.
-In the macro example (a), the execution of the query selected from the query list on the operation screen is instructed by clicking the execution button, etc.
-In the query editing example in (b), editing of one query selected from the query list on the operation screen (for example, “sales status”) is instructed by clicking the edit button, etc., and the definition content of the selected query is displayed on the screen. Then, on this screen, the extraction conditions such as “year” and “store name” are changed as necessary.
[0008]
[Problems to be solved by the invention]
As described above, when the extraction conditions of a plurality of queries corresponding to the above-described query are changed in the conventional data extraction system, each query is individually selected and displayed, and the contents are displayed. Because it is not possible to compare the extraction conditions such as “store name” common to “sales status” and “purchase status” that are different queries at the same time. There was a problem that thought was interrupted and the process of changing the common extraction condition between the selected queries could not be performed efficiently.
[0009]
In addition, since it is difficult for the operator to assume the time required for continuous execution of a plurality of queries, there is a problem that the worker is restrained in front of the terminal for an unspecified time until the continuous execution ends.
[0010]
Therefore, in the present invention, a plurality of selected queries are displayed in a list in units of extraction target names and extraction condition items that are the respective constituent elements, and further, individual change / batch change for each extraction condition item on the list display By specifying, it is possible to select the comparison target of the extraction condition across different queries and the change format, and to improve the efficiency of the modification process of the extraction condition when editing multiple queries or during continuous execution With the goal.
[0011]
In addition, by displaying a list of past execution times for multiple queries together, it is possible to make the workers estimate the required time prior to new continuous execution after changing the multiple query extraction conditions. The purpose is to reduce the unnecessary restraint time of workers at the site.
[0012]
[Means for Solving the Problems]
The present invention solves this problem as follows.
(1) In a data extraction system for extracting execution result data of a query by searching a database based on a query composed of a search target name and an extraction condition item for the search target . A query management unit that acquires and holds the content data corresponding to each of the plurality of selected search target names from a query definition unit in which content data is described in units of the search target names; and the query A display unit that displays a list of a plurality of the content data held in the management unit for each extraction condition item, and an input unit that executes a change input process for the content data displayed as a list on the display unit are provided.
(2) In the above (1), a time management table is provided that stores the time required for execution for each of the inquiries, and the inquiry management unit sets the time required for execution for each of the inquiries to the time management table. And is displayed on the display unit.
(3) In the above (1) and (2), the inquiry management unit performs a process of changing the extraction condition item data for a plurality of the inquiries based on individual / collective change instructions from the input unit. Execute.
[0013]
According to the present invention, as described in (1) above, the extraction condition items of a plurality of selected queries are managed, and the queries are listed in units of extraction target names and extraction condition items. The extraction condition changing process can be performed accurately in a short time while viewing this list display.
[0014]
In this list display, one query content is displayed in the same row and the same extraction condition item is displayed in the same column in a matrix format, and further, a blank cell that does not have an extraction condition item value is distinguished from other existing cells. For example, by displaying a blank cell in a shaded manner or in a specific color, the list of extraction conditions can be improved.
[0015]
In addition, as shown in (2) above, since the past execution times of each of the plurality of queries are also displayed in a list, the worker can set the time required for new continuous execution after the change of the extraction conditions of the plurality of queries. You can give a guide.
[0016]
Further, as described in (3) above, the batch change process of the extraction condition item values can be performed for each extraction condition item, so that the extraction condition change operation is simplified and the change processing time can be shortened. Furthermore, convenience can be further enhanced by directly specifying an extraction condition cell to be changed and changing its value.
[0017]
Further, when the continuous execution of a plurality of inquiries is instructed, the search using the extraction condition item data of the inquiries already managed by the inquiry management unit is continuously performed .
[0018]
The present invention is also directed to a computer-readable program recording medium storing a program for causing a computer to realize these functions.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described with reference to FIGS.
In the following description using these figures, for convenience of explanation, SQL (structured query language) is used as the database language, and a query as an example of the above query is used.
[0020]
FIG. 1 is an explanatory diagram illustrating an example of a display screen in a matrix format.
In this display screen example, read from a query definition section (see FIG. 2) described later,
・ Contents of service status, sales status, and purchase status queries (see Fig. 3) (extraction condition items such as reason for return, sales year, store name), past execution time of the query, and The total time is displayed in a matrix format.
[0021]
In addition, the past execution time and the extraction condition item for each query name unit are displayed on the same line, and the reason for return, the sales year, the store name, etc. for each extraction condition item unit are displayed in the same column. A blank cell is a cell without an extraction condition value.
[0022]
For example, for the query “Sales Status”
・ "First half of 1994" as sales year
・ "Main store" as a store
Extraction conditions are set, and no extraction condition regarding the reason for return is set. Further, “2 minutes 10 seconds” of the time required for executing the past database search based on this extraction condition is also displayed.
[0023]
As a button on the screen,
Switch specification button 1 to select individual change of specific cell and batch change of extraction condition item unit
・ Addition to display the query continuous execution list and query definition list (hereinafter referred to as “query continuous execution list” as necessary in the following explanation) on the screen, delete to delete the matrix display part shown in the row unit And an edit button 2 having various functions such as ending to confirm the entire contents of the extraction condition change
Holding for storing the extracted extraction condition in the query definition unit 10 (see FIG. 2), which will be described later, and execution for shifting to continuous execution of each query (database search processing) based on the value of the extraction condition Operation buttons 3 with various functions such as
Etc.
[0024]
The query continuous execution list is a combination list of a plurality of query names that have been continuously executed in the past, and the query definition list is a list of defined query names (see FIG. 10). 2). Further, a plurality of query names at the time of continuous execution of individual queries so far are held in the query definition unit 10 (see FIG. 2).
[0025]
For example, when the store name of “sales status” and “purchase status” is to be changed to “Nagoya store” on the display screen of FIG. 1, an operation for switching the store name switching designation button 1 to “batch” as shown in the figure. And an operation of updating and inputting “Nagoya store” in an arbitrary cell in which the store name is set may be performed in an arbitrary order.
[0026]
In addition, when it is desired to change the store name of “Purchase Status” to “Sapporo Store” and “Nagoya Store”, the operation of switching the store name switch designation button 1 to “individual” contrary to the illustration. The operation of additionally inputting “Nagoya store” in the store name cell of “purchase status” may be performed in an arbitrary order.
[0027]
FIG. 2 is an explanatory diagram showing the overall configuration of the data extraction system,
10 is a query definition part describing the contents of each query (see FIG. 3),
20 is a data extraction device,
21 is a matrix management part of the query selected by the user,
22 is a matrix management table storing the query name and extraction condition item of each selected query,
23 is a query execution unit for instructing continuous execution of selection queries and monitoring of execution time of each of the selection queries,
24 is a time management table for storing the time required for executing a query;
25 is a result output unit for holding the execution result of the selection query;
30 is a time monitoring device for obtaining a query execution time based on an instruction from the query execution unit 23;
40 is a DBMS (database management system) that executes a query based on an instruction from the query execution unit 23;
50 is an extraction target DB (database),
Reference numeral 60 denotes an input / output device such as a screen or keyboard corresponding to the matrix management unit 21;
70 is an output device such as a screen or printer corresponding to the result output unit,
Respectively.
[0029]
The user selects a query used for database search from a continuous query execution list or the like (not shown) displayed on the screen of the input / output device 60, and displays each definition content in a matrix on the screen ( Therefore, after performing the extraction condition item value changing process as described above, the DBMS 40 is caused to execute the query. A continuous query execution list and the like (a continuous query execution list and a query definition list) are held in the matrix management unit 21 as described above.
[0030]
Further, the execution result of the DBMS 40 is confirmed by the output device 70, and the input / output device 60 instructs the reflection of the changed extraction condition to the query definition unit 10. Of course, it is optional whether or not to update the query contents so far by reflecting the changed extraction condition in the query definition unit 10.
[0031]
In the data extraction system of FIG.
Including the query definition unit 10 and the time monitoring device 30 in the data extraction device 20,
-Common input / output device 60 and output device 70,
You may do it.
[0032]
FIG. 3 is an explanatory diagram of a definition example of a query.
Each query specifies an extraction item name after “select”, specifies a search target after “from”, and specifies an extraction condition item name and its value after “where”.
[0033]
FIG. 4 is an explanatory diagram showing an overview of the matrix management table 22, wherein 22a is a change designation flag, 22b is an extraction condition item name, 22c is a query name, 22d is an execution time, 22e is an extraction condition item value, Reference numeral 22f indicates the total value of the required execution times. The content shown corresponds to the display screen of FIG.
[0034]
FIG. 5 is an explanatory diagram showing an outline of the time management table 24.
The content shown in the figure is the past execution time of each query (service status, sales status, purchase status, etc.) in FIG.
[0035]
FIG. 6 is an explanatory diagram showing a processing procedure when a target query for data extraction is selected and displayed, and its contents are as follows. The order of steps (12) to (14) and the order of steps (15) and (16) are arbitrary.
(11) Select a target query from a query continuous execution list or the like (query continuous execution list or query definition list) on the operation screen, and proceed to the next step.
(12) The “query name” of each selected query is registered in the matrix management table 22, and the process proceeds to the next step.
(13) The contents of each selected query are read from the query definition unit 10 and held in the work area, and the process proceeds to the next step. If the selection in step (11) is a query continuous execution list, the query names corresponding to the selection are held in the query definition unit 10 as described above, so that their contents are read continuously. It will be.
(14) Substitute the total number of selected queries into the constant M, and substitute “1” into the variable N, and proceed to the next step.
(15) For all the extraction condition items of the Nth query,
If it is an item that has already been described, put the value of the item in the cell of the item column of the matrix management table 22,
If it is the first item, add a new item row to the matrix management table 22 and enter the item name and its value there.
Proceed to the next step.
(16) The time required for execution of the Nth query is obtained from the time management table 24 and entered in the execution time cell 22d of the query of the matrix management table 22, and the process proceeds to the next step.
(17) It is determined whether or not “N ≧ M”. If “YES”, the process proceeds to step (19), and if “NO”, the process proceeds to the next step.
(18) Return “N + 1 → N” and return to step (15).
(19) The values stored in the execution time cells 22d of the matrix management table 22 are added to the execution time total cell 22f, and the process proceeds to the next step.
(20) The contents of the matrix management table 22 are displayed on the input / output device 60 on the screen, and the series of processes is terminated.
[0036]
FIG. 7 is an explanatory diagram showing a processing procedure when the data extraction condition is changed, and the contents thereof are as follows. Note that the process of step (31) may be executed after step (33).
(31) The individual / batch change is designated by a click operation on the switch designation button 1, and the contents are reflected in the change designation flag 22a of the matrix management table 22, and the process proceeds to the next step.
(32) The position of the cell to be changed is designated with a pointing device or a cursor movement key, and the process proceeds to the next step.
(33) The change contents of the data extraction conditions are input from the input / output device 60, and the process proceeds to the next step.
(34) It is determined whether the change designation flag 22a of the column is set individually or collectively. If “individual”, the process proceeds to the next step, and if “changed”, the process proceeds to step (36).
(35) The contents of the change target cell of the matrix management table 22 are updated with the change value of step (33), and the series of processes is terminated.
(36) The column to which the change target cell belongs, that is, the extraction condition item is obtained, and the process proceeds to the next step.
(37) The contents of each cell (excluding blank cells) in the corresponding column of the matrix management table 22 are updated with the changed value in step (33), and the series of processes is terminated.
[0037]
FIG. 8 is an explanatory diagram showing a processing procedure when a query is executed, and its contents are as follows. The order of steps (54) and (55) is arbitrary.
(51) After changing the data extraction conditions, click “execute” of the operation button 3 to proceed to the next step.
(52) Substitute the total number of selected queries into the constant M, and substitute “1” into the variable N, and proceed to the next step.
(53) With respect to the Nth query, the time monitoring device 30 is requested to monitor the time required for execution, and the DBMS 40 is instructed to execute the execution, and the process proceeds to the next step.
(54) The execution result of the query is received from the DBMS 40, held in the result output unit 25, and proceeds to the next step.
(55) The time required for executing the query is received from the time monitoring device 30 and stored in the corresponding cell of the time management table 24, and is stored in the corresponding cell of the matrix management table 22, and the next step is performed. move on.
(56) It is determined whether or not “N ≧ M”. If “YES”, the series of processing ends, and if “NO”, the process proceeds to the next step.
(57) As “N + 1 → N”, the process returns to the step (53).
[0038]
FIG. 9 is an explanatory diagram showing an outline of a computer system that reads and executes a program from a computer-readable recording medium. 80 is a computer system, 81 is a main body unit incorporating a CPU, a disk drive device, and the like. , 82 is a display for displaying an image in accordance with an instruction from the main body 81, 83 is a display screen, 84 is a keyboard for inputting various information to the computer system 80, and 85 is an arbitrary on the display screen 83. A mouse for specifying the position of the computer, 86 is an external database (line-destination memory such as DASD), 87 is a modem for accessing the external database 86, 88 is a CD-ROM, floppy disk, etc. Each of these portable recording media is shown.
[0039]
As a recording medium for storing the program,
-Database 86 on the program provider side (destination memory)
Portable recording medium 88
Any of the memories on the main body 81 side or the like may be used, and the program is loaded into the main body 81 and executed on the main memory.
[0040]
【The invention's effect】
In this way, the present invention manages the extraction condition items of a plurality of selected queries and displays a list of each of the queries in units of extraction target names and extraction condition items. The extraction condition changing process can be performed accurately in a short time while observing.
[0041]
In this list display, one query content is displayed in the same row and the same extraction condition item is displayed in the same column in a matrix format, and further, a blank cell that does not have an extraction condition item value is distinguished from other existing cells. For example, by displaying a blank cell in a shaded manner or in a specific color, the list of extraction conditions can be improved.
[0042]
In addition, since the past execution time of each of the plurality of queries is also displayed in a list, the operator can set a guideline for the new continuous execution time after changing the query extraction condition.
[0043]
In addition, since the batch change process of the extraction condition item values can be performed for each extraction condition item, the extraction condition change operation is simplified and the change processing time can be shortened. Furthermore, convenience can be further enhanced by directly specifying an extraction condition cell to be changed and changing its value.
[0044]
In addition, when instructing continuous execution of a plurality of queries, it is possible to perform continuous execution using the extraction condition item value of the query already managed by the query management means.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram illustrating an example of a display screen in a matrix format according to the present invention.
FIG. 2 is an explanatory diagram showing an overall configuration of a data extraction system according to the present invention.
FIG. 3 is an explanatory diagram showing an example of query definition according to the present invention.
FIG. 4 is an explanatory diagram showing an outline of a matrix management table according to the present invention.
FIG. 5 is an explanatory diagram showing an outline of a time management table according to the present invention.
FIG. 6 is an explanatory diagram showing a processing procedure when selecting and displaying a target query for data extraction according to the present invention.
FIG. 7 is an explanatory diagram showing a processing procedure when changing data extraction conditions according to the present invention.
FIG. 8 is an explanatory diagram showing a processing procedure when executing a query according to the present invention;
FIG. 9 is an explanatory diagram showing an overview of a computer system that reads and executes a program from a computer-readable recording medium according to the present invention.
FIG. 10 is an explanatory diagram illustrating a conventional query continuous execution definition (macro) example and a query editing example.
[Explanation of symbols]
1 and 2,
1: Individual change / batch change switch designation button 2: Edit button 3: Operation button 10: Query definition unit 20: Data extraction device 21: Query matrix management unit 22: Matrix management table 23: Query execution unit 24: Time management table 25: Result output unit 30: Time monitoring device 40: DBMS (database management system)
50: DB (database)
60: Input / output device such as a screen keyboard 70: Output device such as a screen or a printer

Claims (6)

検索対象名および、検索対象についての抽出条件項目から構成される問合わせに基づいてデータベースを検索することにより、当該問合わせの実行結果データを抽出するデータ抽出システムにおいて、
前記問合わせの内容データが前記検索対象名の単位で記述された問合わせ定義部から、選択済みの複数の前記検索対象名それぞれに対応した前記内容データを取得して保持する問合わせ管理部と、
前記問合わせ管理部に保持された複数の前記内容データを前記抽出条件項目ごとに一覧表示する表示部と、
前記表示部で一覧表示された前記内容データの変更入力処理を実行する入力部と、
を備えたことを特徴とするデータ抽出システム。
In the data extraction system that extracts the execution result data of the query by searching the database based on the query composed of the search target name and the extraction condition item about the search target ,
A query management unit that acquires and stores the content data corresponding to each of the plurality of selected search target names from a query definition unit in which the content data of the query is described in units of the search target names; ,
A display unit that displays a list of the plurality of content data held in the inquiry management unit for each extraction condition item;
An input unit for executing a change input process of the content data listed in the display unit;
A data extraction system characterized by comprising:
前記問合わせごとのそれまでの実行所要時間を記憶した時間管理テーブルを設け、
前記問合わせ管理部は、前記問合わせごとの前記実行所要時間を前記時間管理テーブルから取り出して前記表示部に表示させる、
ことを特徴とする請求項1記載のデータ抽出システム。
Provide a time management table that stores the time required for execution of each inquiry so far,
The inquiry management unit takes out the execution required time for each inquiry from the time management table and displays the time on the display unit.
The data extraction system according to claim 1.
前記問合わせ管理部は、複数の前記問合わせについて、前記入力部からの個別/一括の変更指示に基づいて前記抽出条件項目データの変更処理を実行する、
ことを特徴とする請求項1または2記載のデータ抽出システム。
The inquiry management unit executes a change process of the extraction condition item data based on an individual / collective change instruction from the input unit for a plurality of the inquiries,
The data extraction system according to claim 1 or 2, characterized in that
検索対象名および、検索対象についての抽出条件項目から構成される問合わせに基づいてデータベースを検索することにより、当該問合わせの実行結果データを抽出するデータ抽出システムで用いられるプログラムを格納した記録媒体において、
前記プログラムは、コンピュータに、
前記問合わせの内容データが前記検索対象名の単位で記述された問合わせ定義部から、選択済みの複数の前記検索対象名それぞれに対応した前記内容データを取得して問合わせ管理部に保持する機能と、
前記問合わせ管理部に保持された複数の前記内容データを表示部に前記抽出条件項目ごとに一覧表示する機能と、
前記表示部で一覧表示された前記内容データの変更処理を入力部からの指示に基づいて実行する機能と、
を実現させるためのものであることを特徴とするコンピュータ読み取り可能なプログラム記録媒体。
A recording medium storing a program used in a data extraction system for extracting the execution result data of a query by searching a database based on a query composed of a search target name and an extraction condition item for the search target In
The program is stored in a computer.
The content data corresponding to each of the plurality of selected search target names is acquired from the query definition unit in which the content data of the query is described in units of the search target names, and held in the query management unit Function and
A function of displaying a list of the plurality of content data held in the inquiry management unit for each extraction condition item on a display unit;
A function of executing a change process of the content data displayed in a list on the display unit based on an instruction from the input unit;
A computer-readable program recording medium characterized by the above.
前記プログラムは、前記問合わせごとのそれまでの実行所要時間を記憶した時間管理テーブルから当該実行所要時間を取り出して前記表示部に表示する機能を、コンピュータに併せて実現させるものである、
ことを特徴とする請求項4記載のコンピュータ読み取り可能なプログラム記録媒体。
The program realizes, together with a computer, a function of taking out the required execution time from the time management table storing the required execution time until each inquiry and displaying it on the display unit .
The computer-readable program recording medium according to claim 4.
前記プログラムは、複数の前記問合わせについて、前記入力部からの個別/一括の変更指示に基づいて前記抽出条件項目データの変更処理を前記問合わせ管理部で実行する機能を、コンピュータに併せて実現させるものである、
ことを特徴とする請求項4または5記載のコンピュータ読み取り可能なプログラム記録媒体。
The program realizes, together with a computer, a function for executing the change processing of the extraction condition item data in the inquiry management unit based on individual / collective change instructions from the input unit for a plurality of the inquiries. Is what
6. A computer-readable program recording medium according to claim 4 or 5.
JP27772298A 1998-09-30 1998-09-30 Data extraction system and computer-readable recording medium therefor Expired - Fee Related JP3627030B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27772298A JP3627030B2 (en) 1998-09-30 1998-09-30 Data extraction system and computer-readable recording medium therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27772298A JP3627030B2 (en) 1998-09-30 1998-09-30 Data extraction system and computer-readable recording medium therefor

Publications (2)

Publication Number Publication Date
JP2000112951A JP2000112951A (en) 2000-04-21
JP3627030B2 true JP3627030B2 (en) 2005-03-09

Family

ID=17587417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27772298A Expired - Fee Related JP3627030B2 (en) 1998-09-30 1998-09-30 Data extraction system and computer-readable recording medium therefor

Country Status (1)

Country Link
JP (1) JP3627030B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4786358B2 (en) * 2006-02-01 2011-10-05 株式会社日立製作所 Job execution time estimation system, job execution time estimation method, and job execution time estimation program
JP5157209B2 (en) * 2007-03-20 2013-03-06 大日本印刷株式会社 Method for displaying related keywords of a theme keyword and web server
JP4906968B1 (en) * 2011-05-22 2012-03-28 株式会社三菱東京Ufj銀行 Database inquiry terminal
JP5256355B2 (en) * 2012-01-06 2013-08-07 株式会社三菱東京Ufj銀行 Database inquiry terminal
JP2019121050A (en) * 2017-12-28 2019-07-22 株式会社湯山製作所 Medical information management system and medical information management program

Also Published As

Publication number Publication date
JP2000112951A (en) 2000-04-21

Similar Documents

Publication Publication Date Title
US6092048A (en) Task execution support system
JP2732552B2 (en) How to generate and display search queries and search results
US6640221B1 (en) System and method for configuring, sequencing and viewing joins in a query
JP2002207726A (en) Document controller, method of extracting related document, and method of supporting document operation
JPH1069578A (en) Data processing device
US20030227481A1 (en) Creating user interfaces using generic tasks
JP4529861B2 (en) Hierarchical data search apparatus, search method, and search program
JP2000285128A (en) Job analytic system
JP3627030B2 (en) Data extraction system and computer-readable recording medium therefor
JP2001337953A (en) Information visualizing system
JPH11265368A (en) Working procedure management system
JP2000242490A (en) Software development managing device, information presenting device, and program recording medium
JP2004046657A (en) Method, apparatus and software for calculation support
JP2009043188A (en) Operation management support system, and program
JPH1139320A (en) Document management method, document retrieval method and document retrieval device
JPH08329101A (en) Data base system
JPH06301734A (en) Data retrieving device
JPH10193240A (en) Manufacturing condition control device, manufacturing condition change processing method and storage medium
JP5039505B2 (en) Document search apparatus and document search support method
JP7022566B2 (en) History management system, history management program
JP2000305937A (en) Business analyzing method and business analysis system
JP3521822B2 (en) Electronic report device and machine-readable recording medium recording program
JP4906587B2 (en) Job operating status evaluation system, job operating status evaluation method, and job operating status evaluation program
JP3824468B2 (en) Data management system
JPH07192048A (en) Device and method for managing process information

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040525

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040726

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041026

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041029

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041115

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071217

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081217

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091217

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091217

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101217

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111217

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111217

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121217

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121217

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees