JP3824468B2 - Data management system - Google Patents

Data management system Download PDF

Info

Publication number
JP3824468B2
JP3824468B2 JP2000085231A JP2000085231A JP3824468B2 JP 3824468 B2 JP3824468 B2 JP 3824468B2 JP 2000085231 A JP2000085231 A JP 2000085231A JP 2000085231 A JP2000085231 A JP 2000085231A JP 3824468 B2 JP3824468 B2 JP 3824468B2
Authority
JP
Japan
Prior art keywords
condition
data operation
data
search
rule
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
JP2000085231A
Other languages
Japanese (ja)
Other versions
JP2001273312A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2000085231A priority Critical patent/JP3824468B2/en
Publication of JP2001273312A publication Critical patent/JP2001273312A/en
Application granted granted Critical
Publication of JP3824468B2 publication Critical patent/JP3824468B2/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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、データベースのようにデータの蓄積、検索といったデータ操作を行うデータ管理システムに関し、特に、データ操作に関する指示の効率化に関する。
【0002】
【従来の技術】
従来より、リレーショナル・データベース(RDB)では、データベースに格納されたデータに対する検索、更新といったデータ操作を行うツールが提供されており、データベース言語SQLにより検索指示を与えることにより非定型的な検索が可能であった。図11は従来のRDBシステムの概略のブロック構成図である。図11のシステムは、検索や更新の対象となるデータを格納するデータベース2、このデータベース2を検索、更新するデータベース検索・更新処理部4、検索・更新条件の指示及び検索、更新結果の表示を行うためのユーザインタフェース部6、検索・更新条件の再利用を図るため当該条件を格納する検索・更新条件ファイル8、この検索・更新条件ファイル8を管理する検索・更新条件管理部10を含んで構成される。
【0003】
ユーザインタフェース部6は表示装置等の出力手段やマウス等の入力手段を含んで構成される。ユーザインタフェース部6には、表示装置の画面表示の模式図が示されている。画面表示12に示すように、検索・更新条件14が操作者により指定されると、データベース検索・更新処理部4がデータベース2に対し検索・更新処理を行い、その結果が検索・更新結果16として表示される。
【0004】
また検索・更新条件管理部10は、画面表示18に示すように、検索・更新条件ファイル8に格納されている検索・更新条件の一覧20を表示させる。操作者はこの一覧20中から検索・更新条件14を選択、指定することができる。このように、一度入力した検索・更新条件を検索・更新条件ファイル8に蓄積して再利用を図ることにより、データベースに対するデータ操作の指示の効率化が図られる。このような従来技術として、特開平7−134717号公報には、使用された検索条件を履歴情報ファイルに蓄積し、その検索条件をアクセス時間等の検索履歴情報と共に一覧表示し、操作者の効率的な検索処理を支援する情報検索システムが開示されている。
【0005】
また、検索条件の一部をパラメータであると指定することにより、検索条件を部分的に変更して再利用する技術があった。この技術では例えば「年齢が10歳未満の子供」という探索条件において“10歳”という探索条件の値の指定をパラメータ化することにより、その部分を他の値に変更することができる。
【0006】
図12〜図16は、人事異動における候補者を検索する作業を例に取り上げて従来技術における検索条件の指定を説明するための説明図であり、図12、図13はそれぞれ人事管理データベースの職員ファイル、資格ファイルの模式図である。また、図14〜図16はそれぞれ、データ操作作業の一例の各ステップにおける検索条件とその検索結果とを示す説明図である。図12に示す職員ファイルは職員の氏名、生年月日などの基本的な情報の他、現在の所属、役職などの情報が格納される。また図13に示す資格ファイルには保有する資格の情報が格納されている。
【0007】
ここでこのデータベースはリレーショナル型であるとし、検索条件をSQL文で与えることで検索が可能であるとする。さて、操作者が、“英語検定”の資格を保有する職員を検索し、その職員、職員番号、所属部門等を表示させる処理行う場合、図14に示すSQL文30にて検索条件を指定する。これに応じて職員ファイル、資格ファイルに対する検索が行われ、検索結果32が得られる。
【0008】
次に操作者は例えば、候補者を移動させた場合の所属部門への影響を検討するために当該所属部門の職員をリストアップする作業を行う。ここでは検索結果32に“総務課”職員が挙げられていることから、操作者は図15に示すSQL文34にて検索条件を指定し、“総務課”の職員の情報がリストアップされた検索結果36を得る。
【0009】
そして、操作者は検索結果36に基づいて“総務課”から異動者を選択できると判断した場合、“総務課”の職員であって保有資格として“英語検定”を有する職員を検索し、その詳細情報を表示させ、異動対象として適当であるか否かを判断する。このための検索条件の指定は図16のSQL文38にて行われ、検索結果40が得られる。
【0010】
例えば、絞り込みの初期段階等では、検索結果が見やすいように、検索対象のファイルの一部のデータ項目のみを表示することが行われ、一方、最終段階では候補者に関する多くのデータ項目を表示することが行われる。このように、SQL文に記述されるデータ項目は検索の各段階において変わりうる。また、SELECT文の“FROM”以下に指定される検索対象ファイルや“WHERE”以下に指定される探索条件も検索の各段階に応じて変わりうる。
【0011】
従来技術においては、この例では、“WHERE”以下に指定される探索条件の値、例えばSQL文34における“総務課”という部分をパラメータ指定可能とすることにより、他の値に置換することができる。一方、例えばデータ項目が各ステップで異なる場合には、作業者は例えば新たなSQL文をキーボードから入力したり、SQL文30をベースにしてエディタを用いてデータ項目を追加、削除しSQL文を修正する作業を行う。
【0012】
【発明が解決しようとする課題】
上述のように従来技術では、データ操作条件の再利用を行う場合には、基本的には、操作者がデータ操作条件文の記述をキーボード、エディタを用いタイプして修正しなければならない。すなわち、再利用を行っても、修正に依然として相当量の手作業が必要であり、検索等のデータ操作作業の効率が低いという問題があった。また、所望のデータ操作が行われる条件文を操作者自らに記述させる修正作業は、SQL文などの検索指示に不慣れな者には難しい場合もあった。
【0013】
本発明は上記問題点を解消するためになされたもので、データ操作条件の再利用を行うと共に、操作者によるデータ操作条件の修正作業を容易とし、データ操作指示の効率化が図られるデータ管理システムを提供することを目的とする。
【0014】
【課題を解決するための手段】
本発明に係るデータ管理システムは、データ操作の対象ファイルが示される対象ファイル部分から構成されデータベース言語で記述されるデータ操作条件文の一部分である条件パーツと前記対象ファイルに含まれるデータ項目の中から選択対象のデータ項目が示されるデータ項目部分から構成される条件パーツと前記対象ファイルに対する検索条件が示される条件部分から構成される条件パーツの少なくとも3つの条件パーツを含むデータ操作条件に基づき、記憶装置に格納したデータに対しデータ操作を行うデータ管理システムにおいて、前記データ操作条件を蓄積する条件蓄積手段と、複数のデータ操作条件に含まれる対象ファイル部分とデータ項目部分と条件部分とをそれぞれ条件パーツごとに組み合わせて編集して新たなデータ操作条件を生成するための各条件パーツに対する組み合わせの規則を定めた条件生成規則を格納する規則格納手段と、前記条件蓄積手段から選択された少なくとも2つのデータ操作条件に含まれる対象ファイル部分とデータ項目部分と条件部分とを前記規則格納手段から選択された前記条件生成規則に基づいて条件パーツごとに組み合わせて編集して新たなデータ操作条件を生成する条件生成手段と、を有するものである。
【0015】
他の本発明に係るデータ管理システムは、前前記データ操作条件を構成する対象ファイル部分とデータ項目部分と条件部分の少なくとも1つを含む条件パーツを蓄積するパーツ蓄積手段を有し、前記規則格納手段が、既存の前記条件パーツを用いて新たな前記データ操作条件を生成する条件生成規則を格納し、前記条件生成手段が、前記パーツ蓄積手段から選択された前記条件パーツを用いて前記新たなデータ操作条件を生成するものである。
【0016】
別の本発明に係るデータ管理システムは、前記条件蓄積手段を検索して、指定されたテンプレートを含む前記データ操作条件を抽出する条件検索手段を有し、前記規則格納手段が、前記条件蓄積手段から選択された前記データ操作条件の部分を抜き出して前記テンプレートを生成するテンプレート生成規則を格納し、前記条件生成手段は、前記規則格納手段から選択されたテンプレート生成規則に基づいて、前記条件蓄積手段から選択された前記データ操作条件及び前記パーツ蓄積手段から選択された前記条件パーツを用いて前記テンプレートを生成するものである。
【0017】
【発明の実施の形態】
次に、本発明の実施形態について図面を参照して説明する。
【0018】
[実施の形態1]
図1は本発明の第1の実施の形態であるRDBシステムの概略のブロック構成図である。図1のシステムは、検索や更新の対象となるデータを格納するデータベース50、このデータベース50を検索、更新するデータベース検索・更新処理部52、データベース検索・更新処理部52に対する検索・更新条件(以下、データ操作条件)の指示及び検索、更新というデータ操作の結果の表示を行うためのユーザインタフェース部54、データ操作条件の再利用を図るため当該条件を格納する条件蓄積ファイル56、データ操作条件を編集して新たなデータ操作条件を生成する条件生成規則(後述)を格納する規則格納ファイル58、これら条件蓄積ファイル56、規則格納ファイル58を管理するデータ操作条件管理部60、及び条件生成規則に基づいてデータ操作条件を生成する条件生成部62を含んで構成される。
【0019】
ユーザインタフェース部54は表示装置等の出力手段やマウス等の入力手段を含んで構成される。ユーザインタフェース部54には、表示装置の画面表示の模式図が示されている。画面表示70に示すように、データ操作条件72が指定されると、データベース検索・更新処理部52がデータベース50に対し検索・更新といったデータ操作を行い、その結果がデータ操作結果74として表示される。
【0020】
またデータ操作条件管理部60は、画面表示80に示すように、条件蓄積ファイル56に格納されているデータ操作条件の一覧82、規則格納ファイル58に格納されている条件生成規則の一覧84を表示させる。操作者はデータ操作条件一覧82中から例えば2つのデータ操作条件を選択、指定することができ、それらが画面上に第1データ操作条件86、第2データ操作条件88として表示される。また操作者は、データ操作条件86,88に対して適用される条件生成規則を一覧84中から選択、指定することができ、それが画面上に条件生成規則90として表示される。
【0021】
次に条件生成規則について説明する。本システムは、条件生成部62によって2つの既存のデータ操作条件86,88を編集して新たなデータ操作条件を生成し、これをデータ操作条件72としてデータベース50に対するデータ操作を行うものである。このときの2つのデータ操作条件に対する編集の規則が条件生成規則である。図2は、規則格納ファイル58に格納される条件生成規則の模式図である。なお、ここで、第1データ操作条件86は次の形式を有する検索操作のSQL文であるとする。
【0022】
SELECT データ項目1 FROM 対象ファイル1 WHERE 条件1
また、第2データ操作条件88は次の形式を有する検索操作のSQL文であるとする。
【0023】
SELECT データ項目2 FROM 対象ファイル2 WHERE 条件2
条件生成規則によって新しく生成される検索を行うためのデータ操作条件を、
SELECT データ項目N FROM 対象ファイルN WHERE 条件N
と表すと、図2は例えば、条件生成規則「論理積」が、
データ項目N =“データ項目1”と“データ項目2”との論理和
対象ファイルN=“対象ファイル1”と“対象ファイル2”との論理和
条件N =“条件1”と“条件2”との論理積
という規則に基づいて、第1データ操作条件と第2データ操作条件とから新しいデータ操作条件を生成することを示している。なお、図2には、データ操作条件が検索条件である場合のみを示したが、更新処理等、他のデータ操作についても条件生成規則を定義し、規則格納ファイル58に格納することができる。
【0024】
次に本システムにおけるデータ操作の一例を具体的に説明する。ここでは、比較を容易とするために従来の技術にて述べたと同様のデータ操作を行うこととし、SQL文30及びSQL文34によって検索操作を行った後に、条件生成規則によって新たなSQL文38を生成する例を示す。
【0025】
本システムでは、操作者がキーボードからデータ操作条件を入力し作成することができる。そして、作成されたデータ操作条件は条件蓄積ファイル56に登録、蓄積することができる。また条件生成規則によって生成されたデータ操作条件も条件蓄積ファイル56に登録、蓄積することができる。
【0026】
SQL文30,34は操作者が入力するか、又は規則による生成によって作成され、検索処理に使用されるとともに、条件蓄積ファイル56に登録される。
【0027】
次に、操作者は“総務課”職員で“英語検定”の資格を有している職員をリストアップし、その詳細な情報を表示する処理を行うSQL文38を作成しようとする。このとき操作者は、表示装置を画面表示80に切り換える。そして、データ操作条件一覧82に表示されている既存のデータ操作条件と条件生成規則一覧84に表示されている条件生成規則とを組み合わせて、SQL文38を生成できないかを検討する。この例では、その結論として、SQL文30,34及び条件生成規則「論理積」を組み合わせればよいであろうことに想到する。
【0028】
そこで操作者はデータ操作条件一覧82に表示されたSQL文30,34を第1データ操作条件、第2データ操作条件として選択する。この選択操作は、データ操作条件一覧82に表示された所望のデータ操作条件をマウスでクリックすることにより実現されるようにシステムを構成することができる。例えば、初めにクリックされたデータ操作条件が第1データ操作条件に設定され、データ操作条件86の欄に表示され、次にクリックされたデータ操作条件が第2データ操作条件に設定され、データ操作条件88の欄に表示される。
【0029】
また、操作者は条件生成規則一覧84に表示された条件生成規則「論理積」をマウス等の操作によって選択し、条件生成規則90の欄に条件生成規則名「論理積」が表示される。
【0030】
このようにデータ操作条件と条件生成規則との選択が完了したならば、操作者は、新たなデータ操作条件の生成をシステムに指示する。システムは、条件生成部62にて新たなデータ操作条件を生成すると共に、表示装置を画面表示80から画面表示70に切り換える。そして、設定された第1データ操作条件、第2データ操作条件及び条件生成規則に基づいて生成した新たなデータ操作条件をデータ操作条件72の欄に表示し、当該データ操作条件に応じてデータベース検索・更新処理部52が実行したデータ操作結果74を表示する。ここでの例では、データ操作条件72には、SQL文38が表示され、その検索結果40がデータ操作結果74に表示される。
【0031】
なお、上述の例では、第1データ操作条件、第2データ操作条件の両方がデータ操作条件一覧82から選択されるものとしたが、いずれか一方をキーボードを用いて操作者が直接、データ操作条件86,88の欄に入力してもよい。また、条件生成規則は2つのデータ操作条件から新たな1つのデータ操作条件を生成するものを例示したが、3つ以上のデータ操作条件から1つのデータ操作条件を生成する規則を定義することも可能である。
【0032】
このように本システムでは、過去に利用されたデータ操作条件を蓄積しておき、新たに必要とされるデータ操作条件に類似する過去のデータ操作条件を編集し、再利用する。データ操作条件は多数のデータ項目や複雑な条件を表す場合があり、比較的長い記述となることが多いが、本システムによれば、データ操作条件をキーボード等の入力手段によって直接記述する作業が削減され、データベースの検索、更新といったデータ操作の効率化が図られる。また、既存のデータ操作条件を編集、再利用することにより、タイプミスや文法の誤りが生じにくくなり、特にデータ操作条件の作成に不慣れな者が操作する場合であっても、データ操作が容易となる。
【0033】
[実施の形態2]
以下の本発明の第2の実施の形態の説明において上記第1の実施の形態と同様の構成要素には同一の符号を付し説明の簡略化を図る。
【0034】
図3は本発明の第2の実施の形態であるRDBシステムの概略のブロック構成図である。図3のシステムは、データ操作条件の再利用を図るために、データ操作条件そのものを蓄積する条件蓄積ファイル56に加えて、データ操作条件の部分を蓄積する条件パーツ蓄積ファイル100を備えている。規則格納ファイル102は、条件蓄積ファイル56に格納されるデータ操作条件及び条件パーツ蓄積ファイル100に格納される条件パーツを編集して新たなデータ操作条件を生成する条件生成規則を格納する。条件パーツ蓄積ファイル100及び規則格納ファイル102は条件蓄積ファイル56と共にデータ操作条件管理部104により管理される。また条件生成規則に基づいたデータ操作条件の生成は条件生成部105によって行われる。
【0035】
本実施の形態のユーザインタフェース部106は、画面表示80の表示内容に条件パーツ一覧108を加えた画面表示110を操作者に提示する点で上記実施の形態のユーザインタフェース部54と相違する。なお、条件パーツ一覧108は条件パーツ蓄積ファイル100に格納されている条件パーツの一覧である。
【0036】
操作者はデータ操作条件一覧82及び条件パーツ一覧108のそれぞれから1つずつ又はいずれか一方から2つのデータ操作条件又は条件パーツを選択、指定することができ、それら2つのデータ操作条件又は条件パーツが画面上に第1データ操作条件86、第2データ操作条件88として表示される。
【0037】
図4は、条件パーツ蓄積ファイル100の一例の模式図である。例えば、条件パーツ「全データ項目」は職員ファイル及び資格ファイルのデータ項目の全てを含むものであり、「SELECT 資格ファイル及び資格ファイルの全データ項目リスト」の形式を有する。この条件パーツはSQL文の対象ファイルの指定、条件の指定を含んでおらず、SQL文の一部分でしかない。また、条件パーツ「年齢制限」は職員ファイルに対する生年月日範囲を指定した検索の条件である。この条件パーツは「FROM 対象ファイル WHERE 条件」の形式を有し、SQL文の後半部分の記述しか有さない。
【0038】
規則格納ファイル102は、データ操作条件の編集によって新たなデータ操作条件を生成する条件生成規則だけでなく、条件パーツを用いて新たなデータ操作条件を生成する条件生成規則をも格納している。例えば、図2に示す上記実施の形態の規則格納ファイル58に格納される条件生成規則「データ項目論理和」「データ項目論理積」「データ項目入替」は、完全な2つのデータ操作条件に対して適用可能な規則であると同時に、“データ項目2”を含む条件パーツと完全なデータ操作条件とに適用可能な規則でもある。また例えば、図2に示す条件生成規則「条件論理積」「条件論理和」は、完全な2つのデータ操作条件に対して適用可能な規則であると同時に、“対象ファイル2”及び“条件2”を含む条件パーツと完全なデータ操作条件とに適用可能な規則でもある。したがって、例えば規則格納ファイル58をそのまま本実施の形態の規則格納ファイル102として使用することもできる。
【0039】
次に本システムにおけるデータ操作の一例を具体的に説明する。ここではまず、従来の技術で例示したSQL文38にて検索を行った結果、さらにデータ項目を追加して、職員ファイル及び資格ファイルの全データ項目を表示させたい場合を例に説明する。図5は、この全データ項目の表示に必要なデータ操作条件(SQL文120)と、それにより得られる検索結果122とを示す説明図である。この場合、既存のSQL文38をベースにデータ操作条件の編集を行って、ここで必要とされる新たなSQL文120を生成することができる。具体的には、SQL文38のデータ項目に図4に示す条件パーツ「全データ項目」のデータ項目を追加することにより新たなSQL文120を得ることができる。
【0040】
このSQL文120を得る作業を説明する。操作者はデータ操作条件一覧82に表示されたSQL文38と、条件パーツ一覧108に表示された条件パーツ「全データ項目」とをそれぞれ選択する。これら選択されたSQL文38及び条件パーツ「全データ項目」は、それぞれデータ操作条件86、88に表示される。また操作者は、SQL文38及び条件パーツ「全データ項目」に対して適用されるべき条件生成規則「データ項目論理和」を条件生成規則一覧84中から選択、指定し、これが画面上に条件生成規則90として表示される。
【0041】
このようにデータ操作条件86,88と条件生成規則90との選択が完了したならば、操作者は、新たなデータ操作条件の生成をシステムに指示する。システムは条件生成部105を起動して、設定されたSQL文38、条件パーツ及び条件生成規則に基づいて新たなデータ操作条件を生成すると共に、表示装置を画面表示110から画面表示70に切り換える。そして、生成された新たなデータ操作条件をデータ操作条件72の欄に表示する。
【0042】
条件生成規則「データ項目論理和」を用いることにより、対象ファイルと条件とは第1のデータ操作条件として指定されたSQL文38から切り出され、一方データ項目にはSQL文38のデータ項目と条件パーツ「全データ項目」との論理和が指定される。このようにしてSQL文120が生成され、データ操作条件72の欄に表示される。そして、データ操作結果74には図5に示す検索結果122が表示される。
【0043】
もう一つの例として、従来の技術で例示したSQL文30にて検索を行った後に、さらに「経験年数」に関し「入社月日がS55.4.1以前である」という条件を付加して絞り込みを行う場合を説明する。図6は、絞り込み検索に必要なデータ操作条件(SQL文130)と、それにより得られる検索結果132とを示す説明図である。この場合には、既存のSQL文30、図4に示される条件パーツ「経験年数制限」、及び条件生成規則「条件論理和」の条件部分ををベースにデータ操作条件の編集を行って、新たなSQL文130を生成することができる。すなわち、条件生成部105は、SQL文30のデータ項目はそのままにして、SQL文30の対象ファイルと条件パーツに指定される対象ファイルとの論理和でSQL文30の対象ファイル部分を書き換え、またSQL文30の条件部分と条件パーツ「経験年数制限」の条件部分との論理積でSQL文30の条件部分を書き換えることにより、SQL文130を生成する。
【0044】
このSQL文130を得る作業も上記SQL文120を得る場合と同様である。すなわち、操作者はデータ操作条件一覧82に表示されたSQL文30と、条件パーツ一覧108に表示された条件パーツ「経験年数制限」とをそれぞれ選択する。これら選択されたSQL文30及び条件パーツ「経験年数制限」は、それぞれデータ操作条件86、88の欄内に表示される。また操作者は、適用されるべき条件生成規則「条件論理積」を条件生成規則一覧84中から選択、指定し、これが画面上の条件生成規則90の欄に表示される。
【0045】
データ操作条件86,88と条件生成規則90との選択が完了した後、操作者の指示に基づいて条件生成部105が起動され、設定されたSQL文30、条件パーツ及び条件生成規則に基づいて新たなデータ操作条件が生成され、システムはこれをデータ操作条件72の欄に表示する。
【0046】
このように、本システムでは過去に利用されたデータ操作条件のうちデータ項目、条件といったデータ操作条件の構成要素を条件パーツ蓄積ファイル100に蓄積し、それを用いてデータ操作条件の生成を行う。過去のデータ操作条件と新たに必要とされるデータ操作条件との類似は、その全体的なものであるよりも部分的なものである可能性が高く、データ操作条件の再利用はその類似する部分単位であることが多い。よって、データ操作条件の構成要素という形で蓄積することにより、新たなデータ操作条件を生成する編集作業が容易となる。特に、使用頻度の高い構成要素について、このような予め条件パーツ蓄積ファイル100に登録しておく意義が大きい。
【0047】
[実施の形態3]
以下の本発明の第3の実施の形態の説明において上記各実施の形態と同様の構成要素には同一の符号を付し説明の簡略化を図る。
【0048】
図7は本発明の第3の実施の形態であるRDBシステムの概略のブロック構成図である。図7のシステムは、データ操作条件管理部150が条件検索部152を有する。条件検索部152は、データ操作条件の部分(以下、テンプレートと称する)を指定されると、条件蓄積ファイル56を検索し、当該テンプレートを含むデータ操作条件を抽出する。テンプレートは、既存のデータ操作条件を編集して生成することができる。そのテンプレート生成に利用されるテンプレート生成規則は、例えば規則格納ファイル154に格納される。条件生成部156は上述の実施の形態と同様の条件生成規則に基づくデータ操作条件の生成処理を行うと共に、テンプレート生成規則に基づくテンプレートの生成処理をも行う。ちなみに、テンプレート生成処理やテンプレートを用いたデータ操作条件の検索処理は、操作者の指示で起動される。そのために例えば画面上にマウス等で操作可能なボタンを表示させる構成が採られる。
【0049】
次に本システムにおけるテンプレートの生成及びその使用の一例を説明する。図8〜図10は、この説明に用いる説明図である。図8は画面表示110の概略図である。上記実施の形態1にて示した図2のうち条件生成規則「データ項目削減」は、テンプレート生成規則として利用可能である。操作者はテンプレートを生成するため、条件生成規則一覧84に表示される「データ項目削減」を選択する。これにより条件生成規則90には当該規則名「データ項目削減」が表示される。また操作者は、データ操作条件一覧82から例えば、資格検索のためのSQL文30を選択し、また条件生成規則一覧84から条件パーツ「全データ項目」を選択する。これにより、データ操作条件86にはSQL文30が、またデータ操作条件88には条件パーツ「全データ項目」が表示される。
【0050】
例えば画面上に表示されるボタン(図示せず)を操作することによりテンプレート生成処理が起動されると、条件生成部156は、指定された条件生成規則に従って新たなデータ操作条件を生成する。この生成されたデータ操作条件がテンプレートとして画面上に表示される。ここでの例では図9に示すテンプレート170が画面上に表示される。SQL文30のデータ項目は全て条件パーツ「全データ項目」に記述されるデータ項目に含まれているため、条件生成規則「データ項目削除」によって、SQL文30のデータ項目が全て削除されたSQL文がテンプレートとして生成される。
【0051】
操作者がこのテンプレート170を使用すると決定し、データ操作条件の検索を指示すると、条件検索部152での処理が起動される。条件検索部152は条件蓄積ファイル56に蓄積されているデータ操作条件のうち、テンプレート170とマッチする記述を含むものを検索、抽出して画面上に一覧表示する。例えば図10に示すように資格・部門検索のためのSQL文172、職歴制限有りの資格検索のためのSQL文174が条件蓄積ファイル56から取得され表示される。
【0052】
操作者は条件検索処理によって取得され一覧表示されたデータ操作条件のうち所望のものを選択して、データベース検索・更新処理部52に対してデータ操作を指示することができる。
【0053】
条件蓄積ファイル56には多数のデータ操作条件が蓄積されうる。そのため、それら全ての一覧表示の中から所望のデータ操作条件を見つける作業は煩雑で時間を要する場合がある。本システムによれば、テンプレートとのマッチング処理によって、所望の特徴を有するデータ操作条件への絞り込みが行われるため、そ必要とするデータ操作条件を探すことが容易となる。また、テンプレートは、キーボード等で直接入力することなく、既存のデータ操作条件、条件パーツを用いテンプレート生成規則に基づいて生成されるため、テンプレートの作成工数も低減される。
【0054】
【発明の効果】
本発明のデータ管理システムによれば、条件生成規則に基づいて既存のデータ操作条件から新たなデータ操作条件を生成するので、データ操作条件をキーボード等の入力手段によって直接記述する作業が削減され、データベースの検索、更新といったデータ操作の効率化が図られる効果がある。また、既存のデータ操作条件を編集、再利用することにより、タイプミスや文法の誤りが生じにくくなり、特にデータ操作条件の作成に不慣れな者が操作する場合であっても、データ操作が容易となる効果が得られる。
【0055】
また本発明のデータ管理システムによれば、データ操作条件を構成する条件パーツを蓄積して、データ操作条件の編集に利用することにより、当該編集作業が容易となる効果がある。
【0056】
また本発明のデータ管理システムによれば、既存のデータ操作条件等を利用しテンプレート生成規則に基づいてテンプレートを生成し、それとマッチングするもののみが操作者に提示されることにより、データ操作条件が多数蓄積される場合でも、所望のものを見つけることが容易となる効果が得られる。また、テンプレートを生成するために操作者がキーボード等を用いて直接、手作業で入力する必要がないため、テンプレートの作成自体が容易であるという効果がある。
【図面の簡単な説明】
【図1】 本発明の第1の実施の形態であるRDBシステムの概略のブロック構成図である。
【図2】 規則格納ファイルに格納される条件生成規則の模式図である。
【図3】 本発明の第2の実施の形態であるRDBシステムの概略のブロック構成図である。
【図4】 条件パーツ蓄積ファイルの一例の模式図である。
【図5】 職員ファイル及び資格ファイルの全データ項目の表示に必要なデータ操作条件及びそれにより得られる検索結果を示す説明図である。
【図6】 絞り込み検索に必要なデータ操作条件及びそれにより得られる検索結果とを示す説明図である。
【図7】 本発明の第3の実施の形態であるRDBシステムの概略のブロック構成図である。
【図8】 テンプレートの生成のための指定を行う画面表示の一例を示す概略図である。
【図9】 生成されたテンプレートの一例を説明する説明図である。
【図10】 テンプレートとのマッチングにより抽出されたデータ操作条件の一例を説明する説明図である。
【図11】 従来のRDBシステムの概略のブロック構成図である。
【図12】 人事管理データベースの職員ファイルの模式図である。
【図13】 人事管理データベースの資格ファイルの模式図である。
【図14】 データ操作作業の一例における資格検索ステップにおける検索条件とその検索結果とを示す説明図である。
【図15】 データ操作作業の一例における部門検索ステップにおける検索条件とその検索結果とを示す説明図である。
【図16】 データ操作作業の一例における資格・部門検索ステップにおける検索条件とその検索結果とを示す説明図である。
【符号の説明】
50 データベース、52 データベース検索・更新処理部、54,106 ユーザインタフェース部、56 条件蓄積ファイル、58,102,154 規則格納ファイル、60,104,150 データ操作条件管理部、62,105,156 条件生成部、82 データ操作条件一覧、84 条件生成規則一覧、86,88 データ操作条件、90 条件生成規則、100 条件パーツ蓄積ファイル、108 条件パーツ一覧、152 条件検索部。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data management system that performs data operations such as storage and retrieval of data like a database, and more particularly, to efficient instruction for data operations.
[0002]
[Prior art]
Conventionally, a relational database (RDB) has been provided with tools for performing data operations such as search and update for data stored in the database, and atypical search is possible by giving a search instruction using the database language SQL. Met. FIG. 11 is a schematic block diagram of a conventional RDB system. The system shown in FIG. 11 includes a database 2 for storing data to be searched and updated, a database search / update processing unit 4 for searching and updating the database 2, a search / update condition instruction and search, and an update result display. A search / update condition file 8 that stores the search / update condition file 8 and a search / update condition management unit 10 that manages the search / update condition file 8. Composed.
[0003]
The user interface unit 6 includes output means such as a display device and input means such as a mouse. The user interface unit 6 shows a schematic diagram of screen display of the display device. As shown in the screen display 12, when the search / update condition 14 is specified by the operator, the database search / update processing unit 4 performs a search / update process on the database 2, and the result is the search / update result 16. Is displayed.
[0004]
The search / update condition management unit 10 also displays a list 20 of search / update conditions stored in the search / update condition file 8 as shown in the screen display 18. The operator can select and specify the search / update condition 14 from the list 20. As described above, the search / update conditions once entered are stored in the search / update condition file 8 and reused, thereby improving the efficiency of data operation instructions for the database. As such a conventional technique, Japanese Patent Laid-Open No. 7-134717 discloses that used search conditions are stored in a history information file, and the search conditions are displayed in a list together with search history information such as access time, thereby improving operator efficiency. An information search system that supports general search processing is disclosed.
[0005]
In addition, there is a technique in which a part of the search condition is specified as a parameter, whereby the search condition is partially changed and reused. In this technique, for example, by specifying the value of the search condition value “10 years old” in the search condition “children under 10 years of age”, the portion can be changed to another value.
[0006]
FIGS. 12 to 16 are explanatory diagrams for explaining the specification of search conditions in the prior art, taking as an example the task of searching for candidates in personnel changes, and FIGS. 12 and 13 are staff members of the personnel management database, respectively. It is a schematic diagram of a file and a qualification file. 14 to 16 are explanatory diagrams showing search conditions and search results in each step of an example of the data operation work. The staff file shown in FIG. 12 stores information such as the current affiliation and job title as well as basic information such as the name and date of birth of the staff. The qualification file shown in FIG. 13 stores qualification information held.
[0007]
Here, it is assumed that this database is a relational type, and that retrieval is possible by giving a retrieval condition by an SQL sentence. When an operator searches for a staff member who has the qualification of “English proficiency” and displays the staff member, staff number, department, etc., the search condition is designated by the SQL statement 30 shown in FIG. . In response to this, the staff file and the qualification file are searched, and a search result 32 is obtained.
[0008]
Next, for example, in order to examine the influence on the department to which the operator is moved when the candidate is moved, the operator performs a work of listing staff members of the department. Here, since the “General Affairs Division” staff is listed in the search result 32, the operator specifies the search conditions in the SQL sentence 34 shown in FIG. 15, and the information on the staff of the “General Affairs Section” is listed. A search result 36 is obtained.
[0009]
When the operator determines that the transfer person can be selected from the “General Affairs Division” based on the search result 36, the operator searches for an employee of the “General Affairs Division” who has “English proficiency” as the possession qualification. Detailed information is displayed, and it is determined whether or not it is appropriate as a transfer target. The search condition for this purpose is designated by the SQL statement 38 in FIG. 16, and the search result 40 is obtained.
[0010]
For example, in the initial stage of narrowing down, only some data items of the search target file are displayed so that the search result is easy to see, while in the final stage, many data items related to candidates are displayed. Is done. As described above, the data items described in the SQL sentence can be changed at each stage of the search. Also, the search target file specified below “FROM” in the SELECT statement and the search condition specified below “WHERE” can be changed according to each stage of the search.
[0011]
In the prior art, in this example, the value of the search condition specified below “WHERE”, for example, the part “General Affairs Division” in the SQL statement 34 can be replaced with another value by enabling parameter specification. it can. On the other hand, for example, when the data items are different in each step, the operator inputs a new SQL sentence from the keyboard, adds or deletes a data item using an editor based on the SQL sentence 30, and deletes the SQL sentence. Make corrections.
[0012]
[Problems to be solved by the invention]
As described above, in the prior art, when the data operation condition is reused, basically, the operator must correct the description of the data operation condition sentence by typing using a keyboard and an editor. That is, there is a problem that even if reuse is performed, a considerable amount of manual work is still necessary for correction, and the efficiency of data manipulation work such as retrieval is low. In addition, it is sometimes difficult for a person who is unfamiliar with a search instruction such as an SQL sentence to perform a correction operation that allows the operator to describe a conditional sentence on which a desired data operation is performed.
[0013]
The present invention has been made in order to solve the above-described problems. Data management that allows data manipulation conditions to be reused, makes it easy for an operator to correct data manipulation conditions, and improves the efficiency of data manipulation instructions. The purpose is to provide a system.
[0014]
[Means for Solving the Problems]
The data management system according to the present invention includes a target file portion in which a target file for data operation is indicated A conditional part that is part of a data manipulation conditional statement that is written in database language And a data item part indicating a data item to be selected from among the data items included in the target file Conditional parts consisting of And a condition part that shows the search conditions for the target file At least three conditional parts consisting of In a data management system for performing data operations on data stored in a storage device based on data operation conditions including data, condition storage means for storing the data operation conditions, target file portions and data included in a plurality of data operation conditions Item part and condition part Each condition part Each to create a new data manipulation condition Condition parts A rule storage means for storing a condition generation rule that defines a combination rule for the data, and a rule file storing a target file part, a data item part, and a condition part included in at least two data operation conditions selected from the condition storage means Based on the condition generation rule selected from the means Condition parts And condition generation means for generating a new data operation condition by combining and editing each.
[0015]
Another data management system according to the present invention configures the previous data operation condition. Includes at least one of the target file part, data item part, and condition part There is a parts accumulating means for accumulating conditional parts, the rule storing means stores a condition generating rule for generating a new data operation condition using the existing conditional parts, and the condition generating means includes the parts The new data operation condition is generated using the condition part selected from the storage means.
[0016]
Another data management system according to the present invention includes a condition search unit that searches the condition storage unit and extracts the data operation condition including a designated template, and the rule storage unit includes the condition storage unit. Stores a template generation rule for extracting the data operation condition part selected from the template and generating the template The condition generation means uses the data operation condition selected from the condition accumulation means and the condition part selected from the parts accumulation means based on the template generation rule selected from the rule storage means. Generate the template To do.
[0017]
DETAILED DESCRIPTION OF THE INVENTION
Next, embodiments of the present invention will be described with reference to the drawings.
[0018]
[Embodiment 1]
FIG. 1 is a schematic block diagram of an RDB system according to the first embodiment of the present invention. The system shown in FIG. 1 includes a database 50 that stores data to be searched and updated, a database search / update processing unit 52 that searches and updates the database 50, and search / update conditions for the database search / update processing unit 52 (hereinafter referred to as the database search / update processing unit 52). , Data operation conditions), a user interface unit 54 for displaying the results of data operations such as search and update, a condition accumulation file 56 for storing the conditions for reusing data operation conditions, and data operation conditions. A rule storage file 58 for storing condition generation rules (to be described later) for editing and generating new data operation conditions, a condition storage file 56, a data operation condition management unit 60 for managing the rule storage file 58, and a condition generation rule A condition generation unit 62 that generates a data operation condition based on the data operation condition is included.
[0019]
The user interface unit 54 includes output means such as a display device and input means such as a mouse. The user interface unit 54 shows a schematic diagram of screen display of the display device. As shown in the screen display 70, when the data operation condition 72 is specified, the database search / update processing unit 52 performs a data operation such as search / update on the database 50, and the result is displayed as the data operation result 74. .
[0020]
Further, as shown in the screen display 80, the data operation condition management unit 60 displays a list 82 of data operation conditions stored in the condition accumulation file 56 and a list 84 of condition generation rules stored in the rule storage file 58. Let The operator can select and specify, for example, two data operation conditions from the data operation condition list 82, and these are displayed as the first data operation condition 86 and the second data operation condition 88 on the screen. Further, the operator can select and specify a condition generation rule to be applied to the data operation conditions 86 and 88 from the list 84, and this is displayed as the condition generation rule 90 on the screen.
[0021]
Next, the condition generation rule will be described. In this system, the condition generation unit 62 edits two existing data operation conditions 86 and 88 to generate a new data operation condition, and uses this as the data operation condition 72 to perform data operation on the database 50. An editing rule for the two data operation conditions at this time is a condition generation rule. FIG. 2 is a schematic diagram of the condition generation rules stored in the rule storage file 58. Here, it is assumed that the first data operation condition 86 is a SQL statement of a search operation having the following format.
[0022]
SELECT data item 1 FROM target file 1 WHERE condition 1
Further, it is assumed that the second data operation condition 88 is a SQL statement of a search operation having the following format.
[0023]
SELECT data item 2 FROM target file 2 WHERE condition 2
The data operation condition for performing a search newly generated by the condition generation rule,
SELECT data item N FROM target file N WHERE condition N
In FIG. 2, for example, the condition generation rule “logical product” is
Data item N = OR of “data item 1” and “data item 2”
Target file N = OR of “target file 1” and “target file 2”
Condition N = AND of "condition 1" and "condition 2"
This indicates that a new data operation condition is generated from the first data operation condition and the second data operation condition based on the rule. Although FIG. 2 shows only the case where the data operation condition is a search condition, a condition generation rule can be defined for other data operations such as update processing and stored in the rule storage file 58.
[0024]
Next, an example of data operation in this system will be specifically described. Here, in order to facilitate comparison, the same data operation as described in the prior art is performed, and after a search operation is performed using the SQL statement 30 and the SQL statement 34, a new SQL statement 38 is generated according to the condition generation rule. An example of generating
[0025]
In this system, an operator can input and create data operation conditions from a keyboard. The created data operation conditions can be registered and accumulated in the condition accumulation file 56. Data operation conditions generated by the condition generation rules can also be registered and stored in the condition storage file 56.
[0026]
The SQL statements 30 and 34 are input by the operator or created by rules, and are used for search processing and registered in the condition accumulation file 56.
[0027]
Next, the operator attempts to create a SQL sentence 38 that performs a process of displaying a list of detailed information on the staff members of the “General Affairs Division” who have the qualification of “English proficiency”. At this time, the operator switches the display device to the screen display 80. Then, it is examined whether the SQL statement 38 can be generated by combining the existing data operation condition displayed in the data operation condition list 82 and the condition generation rule displayed in the condition generation rule list 84. In this example, the conclusion is that the SQL statements 30 and 34 and the condition generation rule “logical product” may be combined.
[0028]
Therefore, the operator selects the SQL statements 30 and 34 displayed in the data operation condition list 82 as the first data operation condition and the second data operation condition. This selection operation can be configured to be realized by clicking a desired data operation condition displayed in the data operation condition list 82 with a mouse. For example, the data operation condition that is clicked first is set as the first data operation condition and displayed in the column of the data operation condition 86, and the data operation condition that is clicked next is set as the second data operation condition. It is displayed in the condition 88 column.
[0029]
Further, the operator selects the condition generation rule “logical product” displayed in the condition generation rule list 84 by operating the mouse or the like, and the condition generation rule name “logical product” is displayed in the column of the condition generation rule 90.
[0030]
When the selection of the data operation condition and the condition generation rule is thus completed, the operator instructs the system to generate a new data operation condition. The system generates a new data operation condition in the condition generation unit 62 and switches the display device from the screen display 80 to the screen display 70. Then, a new data operation condition generated based on the set first data operation condition, second data operation condition and condition generation rule is displayed in the column of the data operation condition 72, and a database search is performed according to the data operation condition. The data operation result 74 executed by the update processing unit 52 is displayed. In this example, the SQL statement 38 is displayed in the data operation condition 72, and the search result 40 is displayed in the data operation result 74.
[0031]
In the above example, both the first data operation condition and the second data operation condition are selected from the data operation condition list 82. However, either one of the first data operation condition and the second data operation condition is directly selected by the operator using the keyboard. You may enter in the column of conditions 86 and 88. In addition, the condition generation rule is exemplified as one that generates one new data operation condition from two data operation conditions, but it is also possible to define a rule that generates one data operation condition from three or more data operation conditions. Is possible.
[0032]
As described above, in this system, data operation conditions used in the past are accumulated, and past data operation conditions similar to newly required data operation conditions are edited and reused. Data operation conditions may represent a large number of data items and complicated conditions, and are often relatively long. However, according to the present system, the operation of directly describing the data operation conditions using an input means such as a keyboard is possible. This reduces the efficiency of data operations such as database search and update. In addition, editing and reusing existing data manipulation conditions makes it easier for typographical errors and grammatical errors to occur, making it easier to manipulate data, especially when someone unfamiliar with creating data manipulation conditions. It becomes.
[0033]
[Embodiment 2]
In the following description of the second embodiment of the present invention, the same components as those in the first embodiment are denoted by the same reference numerals to simplify the description.
[0034]
FIG. 3 is a schematic block diagram of an RDB system according to the second embodiment of the present invention. The system shown in FIG. 3 includes a condition part storage file 100 for storing the data operation condition portion in addition to the condition storage file 56 for storing the data operation condition itself in order to reuse the data operation condition. The rule storage file 102 stores a condition generation rule for editing a data operation condition stored in the condition accumulation file 56 and a condition part stored in the condition part accumulation file 100 to generate a new data operation condition. The condition part accumulation file 100 and the rule storage file 102 are managed by the data operation condition management unit 104 together with the condition accumulation file 56. The data generation condition is generated by the condition generation unit 105 based on the condition generation rule.
[0035]
The user interface unit 106 of the present embodiment is different from the user interface unit 54 of the above-described embodiment in that the screen display 110 obtained by adding the conditional parts list 108 to the display content of the screen display 80 is presented to the operator. The conditional parts list 108 is a list of conditional parts stored in the conditional parts storage file 100.
[0036]
The operator can select and specify two data operation conditions or condition parts from one or each of the data operation condition list 82 and the condition parts list 108, and the two data operation conditions or condition parts. Are displayed as a first data operation condition 86 and a second data operation condition 88 on the screen.
[0037]
FIG. 4 is a schematic diagram of an example of the conditional parts storage file 100. For example, the condition part “all data items” includes all the data items of the staff file and the qualification file, and has the form “SELECT qualification file and all data item list of the qualification file”. This conditional part does not include the specification of the target file of the SQL statement and the specification of the condition, and is only a part of the SQL statement. The condition part “age restriction” is a search condition that specifies a date of birth range for the staff file. This conditional part has a format of “FROM target file WHERE condition” and has only a description of the latter half of the SQL statement.
[0038]
The rule storage file 102 stores not only a condition generation rule for generating a new data operation condition by editing a data operation condition but also a condition generation rule for generating a new data operation condition using a conditional part. For example, the condition generation rules “data item logical sum”, “data item logical product”, and “data item replacement” stored in the rule storage file 58 of the above embodiment shown in FIG. And a rule applicable to a conditional part including “data item 2” and a complete data manipulation condition. Also, for example, the condition generation rules “conditional logical product” and “conditional logical sum” shown in FIG. 2 are rules applicable to two complete data manipulation conditions, and at the same time, “target file 2” and “condition 2”. It is also a rule that can be applied to conditional parts containing "and complete data manipulation conditions. Therefore, for example, the rule storage file 58 can be used as it is as the rule storage file 102 of the present embodiment.
[0039]
Next, an example of data operation in this system will be specifically described. Here, first, description will be made by taking as an example a case where it is desired to display all data items of the staff file and the qualification file by adding data items as a result of searching by the SQL sentence 38 exemplified in the prior art. FIG. 5 is an explanatory diagram showing data operation conditions (SQL sentence 120) necessary for displaying all the data items, and search results 122 obtained thereby. In this case, it is possible to edit the data operation condition based on the existing SQL sentence 38 and generate a new SQL sentence 120 required here. Specifically, a new SQL statement 120 can be obtained by adding the data item of the conditional part “all data items” shown in FIG. 4 to the data item of the SQL statement 38.
[0040]
An operation for obtaining the SQL sentence 120 will be described. The operator selects the SQL sentence 38 displayed in the data operation condition list 82 and the condition part “all data items” displayed in the condition parts list 108. The selected SQL sentence 38 and condition part “all data items” are displayed in data operation conditions 86 and 88, respectively. Further, the operator selects and specifies the condition generation rule “data item logical sum” to be applied to the SQL statement 38 and the condition part “all data items” from the condition generation rule list 84, and this is displayed on the screen as a condition. It is displayed as a generation rule 90.
[0041]
When the selection of the data operation conditions 86 and 88 and the condition generation rule 90 is completed as described above, the operator instructs the system to generate a new data operation condition. The system activates the condition generation unit 105 to generate a new data operation condition based on the set SQL sentence 38, the condition part, and the condition generation rule, and switches the display device from the screen display 110 to the screen display 70. Then, the generated new data operation condition is displayed in the data operation condition 72 column.
[0042]
By using the condition generation rule “data item logical sum”, the target file and the condition are extracted from the SQL statement 38 specified as the first data operation condition, while the data item and the condition of the SQL statement 38 are included in the data item. The logical sum with the part "all data items" is specified. In this way, the SQL sentence 120 is generated and displayed in the column of the data operation condition 72. The data operation result 74 displays the search result 122 shown in FIG.
[0043]
As another example, after performing a search using the SQL sentence 30 exemplified in the prior art, the “year of experience is prior to S55.4.1” condition is further refined with respect to “year of experience”. Explain the case. FIG. 6 is an explanatory diagram showing data operation conditions (SQL sentence 130) necessary for the narrowing search and search results 132 obtained thereby. In this case, the data manipulation condition is edited based on the existing SQL statement 30, the condition part of the condition part “experience years limit” and the condition generation rule “conditional OR” shown in FIG. A simple SQL statement 130 can be generated. In other words, the condition generation unit 105 rewrites the target file portion of the SQL statement 30 with the logical sum of the target file of the SQL statement 30 and the target file specified in the conditional part, with the data items of the SQL statement 30 unchanged. The SQL statement 130 is generated by rewriting the condition portion of the SQL statement 30 with the logical product of the condition portion of the SQL statement 30 and the condition part of the condition part “experience years limit”.
[0044]
The operation for obtaining the SQL statement 130 is the same as that for obtaining the SQL statement 120. That is, the operator selects the SQL sentence 30 displayed in the data operation condition list 82 and the condition part “experience years limit” displayed in the condition parts list 108. The selected SQL sentence 30 and the condition part “experience years limit” are displayed in the columns of the data operation conditions 86 and 88, respectively. Further, the operator selects and designates the condition generation rule “conditional AND” to be applied from the condition generation rule list 84 and displays it in the condition generation rule 90 field on the screen.
[0045]
After the selection of the data operation conditions 86 and 88 and the condition generation rule 90 is completed, the condition generation unit 105 is activated based on an instruction from the operator, and based on the set SQL sentence 30, the condition part, and the condition generation rule. A new data operation condition is generated, and the system displays this in the data operation condition 72 column.
[0046]
As described above, in this system, the data operation condition components such as data items and conditions among the data operation conditions used in the past are accumulated in the condition part accumulation file 100, and the data operation conditions are generated using the accumulated data operation condition elements. The similarity between past data manipulation conditions and newly required data manipulation conditions is likely to be partial rather than overall, and the reuse of data manipulation conditions is similar Often in partial units. Therefore, by accumulating in the form of components of data operation conditions, editing work for generating new data operation conditions is facilitated. In particular, it is significant to register the frequently used components in the conditional parts storage file 100 in advance.
[0047]
[Embodiment 3]
In the following description of the third embodiment of the present invention, the same components as those in the above-described embodiments are denoted by the same reference numerals to simplify the description.
[0048]
FIG. 7 is a schematic block diagram of an RDB system according to the third embodiment of the present invention. In the system of FIG. 7, the data operation condition management unit 150 includes a condition search unit 152. When a data operation condition part (hereinafter referred to as a template) is designated, the condition search unit 152 searches the condition accumulation file 56 and extracts a data operation condition including the template. The template can be generated by editing existing data operation conditions. The template generation rule used for generating the template is stored in the rule storage file 154, for example. The condition generation unit 156 performs a data operation condition generation process based on the same condition generation rule as in the above-described embodiment, and also performs a template generation process based on the template generation rule. Incidentally, the template generation process and the data operation condition search process using the template are started by an instruction from the operator. For this purpose, for example, a configuration is adopted in which buttons that can be operated with a mouse or the like are displayed on the screen.
[0049]
Next, an example of generation and use of a template in this system will be described. 8-10 is explanatory drawing used for this description. FIG. 8 is a schematic diagram of the screen display 110. In FIG. 2 shown in the first embodiment, the condition generation rule “data item reduction” can be used as a template generation rule. The operator selects “data item reduction” displayed in the condition generation rule list 84 in order to generate a template. As a result, the condition generation rule 90 displays the rule name “data item reduction”. The operator selects, for example, the SQL statement 30 for qualification search from the data operation condition list 82 and selects the condition part “all data items” from the condition generation rule list 84. As a result, the SQL statement 30 is displayed in the data operation condition 86, and the condition part “all data items” is displayed in the data operation condition 88.
[0050]
For example, when the template generation process is activated by operating a button (not shown) displayed on the screen, the condition generation unit 156 generates a new data operation condition according to the specified condition generation rule. The generated data operation condition is displayed on the screen as a template. In this example, the template 170 shown in FIG. 9 is displayed on the screen. Since all the data items of the SQL statement 30 are included in the data items described in the condition part “all data items”, the SQL items in which all the data items of the SQL statement 30 are deleted by the condition generation rule “data item deletion” A sentence is generated as a template.
[0051]
When the operator decides to use this template 170 and instructs the retrieval of the data operation condition, the process in the condition retrieval unit 152 is activated. The condition search unit 152 searches and extracts data operation conditions stored in the condition storage file 56 that include a description that matches the template 170, and displays the list on the screen. For example, as shown in FIG. 10, an SQL sentence 172 for qualification / department search and an SQL sentence 174 for qualification search with job history restriction are acquired from the condition accumulation file 56 and displayed.
[0052]
The operator can select a desired one of the data operation conditions acquired and displayed in a list by the condition search process and instruct the database search / update processing unit 52 to perform the data operation.
[0053]
A large number of data operation conditions can be stored in the condition storage file 56. Therefore, the task of finding a desired data operation condition from all the list displays may be complicated and time consuming. According to the present system, the data operation conditions having desired characteristics are narrowed down by the matching process with the template, so that it becomes easy to find the necessary data operation conditions. Further, since the template is generated based on the template generation rule using the existing data operation conditions and condition parts without directly inputting with a keyboard or the like, the number of steps for creating the template is also reduced.
[0054]
【The invention's effect】
According to the data management system of the present invention, since a new data operation condition is generated from an existing data operation condition based on the condition generation rule, the work of directly describing the data operation condition by an input means such as a keyboard is reduced. This has the effect of improving the efficiency of data operations such as database search and update. In addition, editing and reusing existing data manipulation conditions makes it easier for typographical errors and grammatical errors to occur, making it easier to manipulate data, especially when someone unfamiliar with creating data manipulation conditions. The effect becomes.
[0055]
Further, according to the data management system of the present invention, there is an effect that the editing work is facilitated by accumulating the condition parts constituting the data operation conditions and using them for editing the data operation conditions.
[0056]
Further, according to the data management system of the present invention, a template is generated based on a template generation rule using existing data operation conditions and the like, and only a matching item is presented to the operator. Even when a large number of data is accumulated, it is possible to easily find a desired one. Further, since it is not necessary for an operator to manually input directly using a keyboard or the like in order to generate a template, there is an effect that creation of the template itself is easy.
[Brief description of the drawings]
FIG. 1 is a schematic block configuration diagram of an RDB system according to a first embodiment of the present invention.
FIG. 2 is a schematic diagram of condition generation rules stored in a rule storage file.
FIG. 3 is a schematic block configuration diagram of an RDB system according to a second embodiment of the present invention.
FIG. 4 is a schematic diagram of an example of a conditional parts storage file.
FIG. 5 is an explanatory diagram showing data operation conditions necessary for displaying all data items of a staff file and a qualification file, and search results obtained thereby;
FIG. 6 is an explanatory diagram showing data operation conditions necessary for a narrowing search and search results obtained thereby.
FIG. 7 is a schematic block diagram of an RDB system according to a third embodiment of the present invention.
FIG. 8 is a schematic diagram showing an example of a screen display for performing designation for generating a template.
FIG. 9 is an explanatory diagram illustrating an example of a generated template.
FIG. 10 is an explanatory diagram illustrating an example of data operation conditions extracted by matching with a template.
FIG. 11 is a schematic block diagram of a conventional RDB system.
FIG. 12 is a schematic diagram of a staff file in a personnel management database.
FIG. 13 is a schematic diagram of a qualification file of a personnel management database.
FIG. 14 is an explanatory diagram showing search conditions and search results in a qualification search step in an example of data manipulation work.
FIG. 15 is an explanatory diagram showing a search condition and a search result in a department search step in an example of a data operation work.
FIG. 16 is an explanatory diagram showing search conditions and search results in a qualification / department search step in an example of data manipulation work;
[Explanation of symbols]
50 database, 52 database search / update processing unit, 54, 106 user interface unit, 56 condition accumulation file, 58, 102, 154 rule storage file, 60, 104, 150 data operation condition management unit, 62, 105, 156 condition generation Part, 82 data operation condition list, 84 condition generation rule list, 86, 88 data operation condition, 90 condition generation rule, 100 condition part storage file, 108 condition part list, 152 condition search part.

Claims (3)

データ操作の対象ファイルが示される対象ファイル部分から構成されデータベース言語で記述されるデータ操作条件文の一部分である条件パーツと前記対象ファイルに含まれるデータ項目の中から選択対象のデータ項目が示されるデータ項目部分から構成される条件パーツと前記対象ファイルに対する検索条件が示される条件部分から構成される条件パーツの少なくとも3つの条件パーツを含むデータ操作条件に基づき、記憶装置に格納したデータに対しデータ操作を行うデータ管理システムにおいて、
前記データ操作条件を蓄積する条件蓄積手段と、
複数のデータ操作条件に含まれる対象ファイル部分とデータ項目部分と条件部分とをそれぞれ条件パーツごとに組み合わせて編集して新たなデータ操作条件を生成するための各条件パーツに対する組み合わせの規則を定めた条件生成規則を格納する規則格納手段と、
前記条件蓄積手段から選択された少なくとも2つのデータ操作条件に含まれる対象ファイル部分とデータ項目部分と条件部分とを前記規則格納手段から選択された前記条件生成規則に基づいて条件パーツごとに組み合わせて編集して新たなデータ操作条件を生成する条件生成手段と、
を有することを特徴とするデータ管理システム。
A data item to be selected is selected from a conditional part that is a part of a data operation conditional statement that is composed of a target file portion in which a target file for data operation is indicated and is described in a database language, and a data item included in the target file. Data for data stored in a storage device based on a data operation condition including at least three condition parts including a condition part composed of a data item part and a condition part composed of a condition part indicating a search condition for the target file In a data management system that performs operations,
Condition accumulation means for accumulating the data operation conditions;
The combination rules for each condition part for creating new data operation conditions by combining the target file part, data item part, and condition part included in multiple data operation conditions for each condition part and editing them were established. Rule storage means for storing condition generation rules;
A target file part, a data item part, and a condition part included in at least two data operation conditions selected from the condition storage unit are combined for each condition part based on the condition generation rule selected from the rule storage unit. Condition generation means for editing and generating new data operation conditions;
A data management system comprising:
前記データ操作条件を構成する対象ファイル部分とデータ項目部分と条件部分の少なくとも1つを含む条件パーツを蓄積するパーツ蓄積手段を有し、
前記規則格納手段は、既存の前記条件パーツを用いて新たな前記データ操作条件を生成する条件生成規則を格納し、
前記条件生成手段は、前記パーツ蓄積手段から選択された前記条件パーツを用いて前記新たなデータ操作条件を生成すること、
を特徴とする請求項1記載のデータ管理システム。
A part accumulating unit for accumulating a conditional part including at least one of a target file part, a data item part, and a condition part constituting the data operation condition;
The rule storage means stores a condition generation rule for generating a new data operation condition using the existing condition part,
The condition generation means generates the new data operation condition using the condition part selected from the parts storage means;
The data management system according to claim 1.
前記条件蓄積手段を検索して、指定されたテンプレートを含む前記データ操作条件を抽出する条件検索手段を有し、
前記規則格納手段は、前記条件蓄積手段から選択された前記データ操作条件の部分を抜き出して前記テンプレートを生成するテンプレート生成規則を格納し、
前記条件生成手段は、前記規則格納手段から選択されたテンプレート生成規則に基づいて、前記条件蓄積手段から選択された前記データ操作条件及び前記パーツ蓄積手段から選択された前記条件パーツを用いて前記テンプレートを生成すること、
を特徴とする請求項1又は請求項2に記載のデータ管理システム。
Searching the condition storage means, and having a condition search means for extracting the data operation condition including the specified template,
The rule storage means stores a template generation rule for generating the template by extracting a portion of the data operation condition selected from the condition storage means,
The condition generation means uses the data operation condition selected from the condition storage means and the condition part selected from the parts storage means based on the template generation rule selected from the rule storage means. Generating,
The data management system according to claim 1 or 2, characterized by the above.
JP2000085231A 2000-03-24 2000-03-24 Data management system Expired - Fee Related JP3824468B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000085231A JP3824468B2 (en) 2000-03-24 2000-03-24 Data management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000085231A JP3824468B2 (en) 2000-03-24 2000-03-24 Data management system

Publications (2)

Publication Number Publication Date
JP2001273312A JP2001273312A (en) 2001-10-05
JP3824468B2 true JP3824468B2 (en) 2006-09-20

Family

ID=18601596

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000085231A Expired - Fee Related JP3824468B2 (en) 2000-03-24 2000-03-24 Data management system

Country Status (1)

Country Link
JP (1) JP3824468B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5517904B2 (en) * 2010-12-08 2014-06-11 株式会社日立製作所 Data access processing management / generation system

Also Published As

Publication number Publication date
JP2001273312A (en) 2001-10-05

Similar Documents

Publication Publication Date Title
US6698010B1 (en) System, method and computer program product for automatic generation of data processing program
JP2005284987A (en) Document structure editing program, document structure editing method, document structure editing apparatus, and computer readable recording medium with document structure editing program recorded thereon
JP5675676B2 (en) Business analysis design support device, business analysis design support method, and business analysis design support program
JP5747698B2 (en) Requirements management support device
JP4908024B2 (en) Project management support apparatus, project management support method, and project management support program
JP3824468B2 (en) Data management system
JPH09245052A (en) Structured document processor
JP7092992B2 (en) Document management program, document management device and document management method
JP3933407B2 (en) Document processing apparatus, document processing method, and storage medium storing document processing program
JPH07296004A (en) Information management retrieval device
JP2000235561A (en) Simulation model editor and machine readable recording medium recording program
JP2003186670A (en) Automatic generation device, automatic generation method and automatic generation program for database access component
JP3424558B2 (en) Object management method
JPH05135054A (en) Document processing method
JPH07281882A (en) Data base normalization support device
JP3417318B2 (en) Document creation management method and apparatus, and machine-readable recording medium recording program
JPH06195379A (en) Case base and its input/accumulation device
JPH0237466A (en) Information processing system
JP2990314B2 (en) Data management device
JP2004341770A (en) Data management system and data management method
JPH04365172A (en) Retrieving device
JP2006164090A (en) Apparatus for automatic generation of database manipulation program
JPH09212673A (en) Picture editing device
JPH06162097A (en) System for setting retrieval condition of database
JP2003141136A (en) Method of updating index for document search

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060117

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060315

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060509

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060602

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: 20060627

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060627

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: 20100707

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100707

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110707

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110707

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120707

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120707

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130707

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees