JPH10154090A - Data management system - Google Patents

Data management system

Info

Publication number
JPH10154090A
JPH10154090A JP8311890A JP31189096A JPH10154090A JP H10154090 A JPH10154090 A JP H10154090A JP 8311890 A JP8311890 A JP 8311890A JP 31189096 A JP31189096 A JP 31189096A JP H10154090 A JPH10154090 A JP H10154090A
Authority
JP
Japan
Prior art keywords
data
master
master file
information
expiration date
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8311890A
Other languages
Japanese (ja)
Inventor
Yuichi Koizumi
裕一 小泉
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 JP8311890A priority Critical patent/JPH10154090A/en
Publication of JPH10154090A publication Critical patent/JPH10154090A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To improve the usefulness of a master file by adding data valid time limit information to master data before update without overwriting it by master data after update and preserving it in the master file. SOLUTION: An update processing part 3 forms a master file updation means along with a data input control part 2 and it updates the master file and generates a hash table 4 based on the setting content of inputted data valid time limit information. A retrieval part 5 is provided as a master file retrieval means for retrieving the master file 1 based on a peculiar code and data valid time limit information. To put it concretely, it retrieves the master file 1 at a high speed by referring to a retrieval key which is set in the hash table 4. Namely, data valid time limit information is added and preserved without overwriting data which is previously written by data which is written later at the time of updating master data in the master file 1. At the time of retrieval, data is retrieved based on data valid time limit information.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はデータ管理システ
ム、特にマスタファイルに格納したマスタデータを更新
した後でも同一固有コードの更新前のマスタデータを取
得できるデータ管理システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data management system, and more particularly to a data management system capable of acquiring master data before updating of the same unique code even after updating master data stored in a master file.

【0002】[0002]

【従来の技術】予め用意したマスタファイルに登録され
たデータに基づいて所定の処理を行うことは、コンピュ
ータを使用する様々な分野において一般的である。例え
ば、企業内の人事管理に使用されるマスタファイルに
は、全社員の社員コード、氏名、所属あるいは住所など
の社員に対する個人情報が登録されており、各マスタデ
ータは、転居や転属などに伴い該当するものが更新され
る。仮に、ある社員が転属されるときには、その転属日
にその社員の社員コードに対応した人事マスタファイル
の所属コードを更新することによって、マスタファイル
上における転属処理が行われる。この処理により、更新
後のデータは、有効データとなる。一方、更新前の所属
のデータは、通常更新後のデータにより上書きされる。
2. Description of the Related Art Performing a predetermined process based on data registered in a master file prepared in advance is common in various fields using a computer. For example, in a master file used for personnel management in a company, personal information about employees, such as employee code, name, affiliation or address, is registered for each employee. Applicable items are updated. If an employee is transferred, the transfer process on the master file is performed by updating the affiliation code of the personnel master file corresponding to the employee code of the employee on the transfer date. By this processing, the updated data becomes valid data. On the other hand, the belonging data before the update is usually overwritten by the data after the update.

【0003】また、放送局における番組の制作を管理す
るシステムにおいて使用されるマスタファイルには、各
番組プログラムの番組コード、番組名、プロデューサ、
番組の制作に携わる制作チームの構成メンバ名等番組制
作に関する情報が登録される。制作チームすなわち番組
制作のスタッフは、ディレクタ、音声、カメラ、照明等
の各種担当業務に、技術者を配員することにより形成さ
れる。技術者は、技術グループに属しているメンバであ
り、不特定の担当業務を担う。番組制作のプロデューサ
は、個人情報マスタファイル等を参照して技術グループ
に属する各メンバの勤務状況を把握し、同じ時間帯に行
われる他の番組制作に重複しないように技術者を配員す
る。各番組には、番組コード(業務コード)がユニーク
に割り振られるので、この番組コードによって他の番組
と識別している。
A master file used in a system for managing program production in a broadcasting station includes a program code of each program, a program name, a producer,
Information on program production, such as the names of members of a production team involved in program production, is registered. The production team, that is, program production staff, is formed by assigning technicians to various tasks such as director, audio, camera, lighting, and the like. The technician is a member belonging to the technical group and has an unspecified task. The producer of the program production refers to the personal information master file or the like, grasps the working status of each member belonging to the technology group, and assigns a technician so as not to overlap with another program production performed in the same time zone. Since a program code (business code) is uniquely assigned to each program, it is distinguished from other programs by this program code.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
人事管理に関するシステムにおいて、社員の転属が決定
したときにマスタファイルを更新しようとしても実際に
はまだ転属されていないので、データの上書きを伴うマ
スタファイルの更新処理を行うことはできない。もちろ
ん、実際の転属日を待って更新処理を行うことは可能で
あるが、更新処理を忘れる可能性もあり、また、大企業
においてはその転属対象の社員は少なくない。また、マ
スタファイル上においては、更新前のデータは、上書き
されるため過去のデータを参照したくても参照すること
はできない。
However, in the conventional personnel management system, even if an attempt is made to update the master file when the transfer of an employee is determined, the master file has not been transferred yet, so the master file with data overwriting has not been transferred. The file cannot be updated. Of course, it is possible to wait for the actual transfer date to perform the update process, but there is a possibility that the update process may be forgotten, and in large companies, there are many employees who are to be transferred. Further, on the master file, the data before update is overwritten, so that even if the user wants to refer to the past data, it cannot be referred to.

【0005】また、番組の制作を管理するシステムにお
いて、制作される各番組に割り当てられる番組コード
(業務コード)は、同時期にはユニークな番号である
が、番組が終了し未使用となったものは、後の他の番組
によって再利用されている。従って、番組が終了した後
に制作費用がどのくらいかかったのか、あるいは誰がス
タッフとして参加したのかなどを知りたい場合でも、従
来においては、過去の番組に対する情報を取得すること
ができない場合がある。また、スタッフのメンバは、番
組制作を実際に開始する前に予め決定し人員の確保をし
ておく必要がある。特に、季節に依存する企画番組で
は、1年先の人員をも確保しておきたい場合があるの
で、将来に向けての人員確保が容易に行えることが望ま
れる。
In a system for managing the production of programs, the program code (business code) assigned to each produced program is a unique number at the same time, but the program has ended and has become unused. The thing has been reused by other programs later. Therefore, even if it is desired to know how much the production cost was taken after the end of the program, or who participated as a staff member, it may not be possible to obtain information on past programs in the past. In addition, the staff members need to determine in advance and secure the staff before actually starting the program production. In particular, in the case of seasonal planning programs, there is a case where it is desired to secure personnel one year ahead, and it is desired that personnel can be easily secured for the future.

【0006】本発明は以上のような問題を解決するため
になされたものであり、その目的は、過去又は将来のマ
スタデータを保存可能とすることでマスタファイルの有
用性を向上させることのできるデータ管理システムを提
供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to improve the usefulness of a master file by enabling past or future master data to be stored. It is to provide a data management system.

【0007】[0007]

【課題を解決するための手段】以上のような目的を達成
するために、第1の発明におけるデータ管理システム
は、更新後のマスタデータによって上書きすることなく
更新前のマスタデータにデータ有効期限情報を付加して
マスタファイルに保存するものである。
In order to achieve the above object, a data management system according to a first aspect of the present invention provides a data management system according to a first invention, wherein data before and after updating is updated without overwriting with updated master data. And saves it in the master file.

【0008】第2の発明は、第1の発明において、前記
更新後のマスタデータにも前記データ有効期限情報を付
加して前記マスタファイルに格納するものである。
According to a second invention, in the first invention, the updated master data is added to the data expiration date information and stored in the master file.

【0009】第3の発明は、第1又は第2の発明におい
て、前記データ有効期限情報は、前記マスタデータの内
容が有効とされる期間の開始時期と終了時期との情報を
含むものである。
In a third aspect based on the first or second aspect, the data expiration date information includes information on a start time and an end time of a period in which the contents of the master data are valid.

【0010】また、第4の発明は、第1又は第2の発明
において、前記データ有効期限情報に基づいて生成した
データ検索用のキーを前記マスタデータに付加して前記
マスタファイルに格納するものである。
In a fourth aspect based on the first or second aspect, a key for data retrieval generated based on the data expiration date information is added to the master data and stored in the master file. It is.

【0011】第5の発明は、データの識別情報である固
有コードを含むマスタデータを更新可能に格納するマス
タファイルと、入力されたデータ有効期限情報を前記マ
スタデータに付加して前記マスタファイルへの登録を行
うマスタファイル更新処理手段と、固有コード及び前記
データ有効期限情報に基づいて前記マスタファイルの検
索を行うマスタファイル検索手段とを有し、前記マスタ
ファイル検索手段は、同一の固有コードを含む前記マス
タデータの中から入力指定された時間情報を満足するマ
スタデータを選択するものである。
According to a fifth aspect of the present invention, there is provided a master file for storing master data including a unique code which is data identification information in an updatable manner, and adding the input data expiration date information to the master data and adding the data to the master file. Master file update processing means for performing registration of the master file, and master file search means for searching for the master file based on the unique code and the data expiration date information, wherein the master file search means has the same unique code. Master data that satisfies the input and designated time information from the included master data.

【0012】更に、第6の発明は、第5の発明におい
て、前記固有コードと前記データ有効期限情報に基づい
て生成された検索用のキーとを組み合わせて生成した検
索キーを登録するハッシュ記憶手段を有するものであ
る。
In a sixth aspect based on the fifth aspect, a hash storage means for registering a search key generated by combining the unique code and a search key generated based on the data expiration date information. It has.

【0013】[0013]

【発明の実施の形態】以下、図面に基づいて、本発明の
好適な実施の形態について説明する。
Preferred embodiments of the present invention will be described below with reference to the drawings.

【0014】実施の形態1.図1は、本発明に係るデー
タ管理システムの実施の形態1を示した機能ブロック図
である。本実施の形態におけるデータ管理システムは、
企業内の人事管理に適用されている場合を例にして説明
する。図1において、データ入力制御部2は、マスタフ
ァイル1に登録する各種データ等を画面入力させるため
の手段であり、ディスプレイやマウス、キーボード等の
入出力手段並びにそれら機器の動作を制御するソフトウ
ェアにより構成される。更新処理部3は、データ入力制
御部2とともにマスタファイル更新処理手段を形成し、
入力されたデータ有効期限情報等の設定内容に基づきマ
スタファイル1の更新やハッシュテーブル4の生成を行
う。検索部5は、固有コード及び後述するデータ有効期
限情報に基づいてマスタファイル1の検索を行うスタフ
ァイル検索手段として設けられており、具体的には、ハ
ッシュテーブル4に設定された検索キーを参照すること
によってマスタファイル1の検索を高速に行う。データ
出力部6は、検索部5により検索結果を所定の出力形式
で表示する。データ出力部6は、プリンタやディスプレ
イにより構成される。本実施の形態におけるデータ管理
システムは、一般的なコンピュータにより構築すること
ができる。上記マスタファイル更新処理手段及びマスタ
ファイル検索手段は、コンピュータのCPU上で動作す
るアプリケーションプログラムによって実現される。デ
ータ入力制御部2及びデータ出力部6は、CPU上で動
作し、上記周辺機器とそれら機器を動作制御するアプリ
ケーションドライバ等で実現される。
Embodiment 1 FIG. 1 is a functional block diagram showing Embodiment 1 of a data management system according to the present invention. The data management system according to the present embodiment
An example in which the present invention is applied to personnel management in a company will be described. In FIG. 1, a data input control unit 2 is a means for inputting various data and the like to be registered in the master file 1 on a screen, and is provided by input / output means such as a display, a mouse, a keyboard, and software for controlling the operation of those devices. Be composed. The update processing unit 3 forms a master file update processing unit together with the data input control unit 2,
The master file 1 is updated and the hash table 4 is generated based on the set contents such as the input data expiration information. The search unit 5 is provided as a star file search unit that searches the master file 1 based on the unique code and data expiration date information described later. Specifically, the search unit 5 refers to a search key set in the hash table 4. By doing so, the master file 1 is searched at high speed. The data output unit 6 displays the search result by the search unit 5 in a predetermined output format. The data output unit 6 includes a printer and a display. The data management system in the present embodiment can be constructed by a general computer. The master file update processing means and the master file search means are realized by an application program running on a CPU of a computer. The data input control unit 2 and the data output unit 6 operate on a CPU, and are realized by the peripheral devices and an application driver for controlling the operation of the devices.

【0015】図2は、本実施の形態におけるマスタファ
イル1のデータフォーマット例を示した図である。本実
施の形態におけるマスタファイル1は、社員の個人情報
を格納する。すなわち、図2に示したように、各個人を
識別するための固有コードである個人コードに対応させ
て、氏名、所属コード、住所及び電話番号等の更新可能
なマスタデータに加えて有効期限キー並びにデータ有効
期限情報が付加されてマスタファイル1に格納される。
本実施の形態では、各個人に関する情報のうちデータ有
効期限情報が付加されている一レコードをマスタデータ
ということにする。図3は、データ有効期限情報、有効
期限キー及びハッシュテーブル4の関係を示した図であ
るが、本実施の形態においては、データ有効期限情報と
してマスタデータの内容が有効とされる期間の「有効開
始」時期と「有効終了」時期が設定される。有効期限キ
ーは、データ有効期限情報に基づいて生成されるデータ
検索用のキーであるが、有効期限キーを含むマスタファ
イル1の更新処理については、後述する。
FIG. 2 is a diagram showing an example of the data format of the master file 1 in the present embodiment. The master file 1 in the present embodiment stores employee personal information. That is, as shown in FIG. 2, in addition to the renewable master data such as a name, an affiliation code, an address and a telephone number, an expiration date key is associated with a personal code which is a unique code for identifying each individual. In addition, data expiration date information is added and stored in the master file 1.
In the present embodiment, one record to which data expiration date information is added among information on each individual is referred to as master data. FIG. 3 is a diagram showing the relationship among the data expiration date information, the expiration date key, and the hash table 4. In the present embodiment, the data expiration date information " A "valid start" time and a "valid end" time are set. The expiration date key is a key for data search generated based on the data expiration date information. The update process of the master file 1 including the expiration date key will be described later.

【0016】また、本実施の形態におけるハッシュテー
ブル4は、固有コードである個人コードに有効期限キー
を組み合わせた検索キーを登録するハッシュ記憶手段で
ある。ハッシュテーブル4は、図示しないディスク装置
内に生成されるが、その生成手法については後述する。
The hash table 4 in the present embodiment is a hash storage unit for registering a search key obtained by combining an expiration date key with a personal code which is a unique code. The hash table 4 is generated in a disk device (not shown), and a generation method thereof will be described later.

【0017】一般に、マスタファイル1に登録されるマ
スタデータは、その内容が更新されると、更新前のデー
タは上書きされることになるが、本実施の形態において
特徴的なことは、更新前のマスタデータを更新後のマス
タデータによって上書きすることなく更新前のマスタデ
ータにデータ有効期限情報を付加してマスタファイルに
保存することである。また、更新後のマスタデータにも
データ有効期限情報を付加してマスタファイル1に格納
することである。すなわち、マスタファイル1に格納さ
れるマスタデータには、データ有効期限情報が付与され
るだけで、図2に示したように個人コードに対応したマ
スタデータを複数持たせたような構成となる。このよう
に、更新前のマスタデータを保存するようにしたので、
検索時にはデータ有効期限情報に基づいて検索を行うよ
うにすれば、過去のマスタデータを取得することができ
る。また、将来のマスタデータが実際に有効なデータと
なる前に予めマスタファイル1に登録することができ
る。
In general, when the contents of the master data registered in the master file 1 are updated, the data before the update is overwritten. Is to add data expiration date information to the master data before update without overwriting the master data with the master data after update, and save it in the master file. In addition, the data expiration date information is added to the updated master data and stored in the master file 1. That is, the master data stored in the master file 1 is provided with a plurality of master data corresponding to the personal code as shown in FIG. 2 only by adding the data expiration date information. In this way, the master data before update is saved,
If a search is performed based on data expiration date information at the time of search, past master data can be obtained. Further, it is possible to register the master data in the master file 1 in advance before the future master data becomes effective data.

【0018】次に、本実施の形態における個人情報のマ
スタファイル1への登録処理について図4に示したフロ
ーチャートを用いて説明する。
Next, a process of registering personal information in the master file 1 according to the present embodiment will be described with reference to a flowchart shown in FIG.

【0019】データ入力制御部2は、ユーザにより登録
するためのデータやデータ有効期限情報など必要な項目
を入力すると(ステップ101)、予め設定されている
条件通りに入力されたかのチェックを行う(ステップ1
02)。例えば、必須項目が入力されたか、正しいフォ
ーマットで入力されたかなどである。正しく入力がされ
ていない場合は、エラーメッセージを表示し、再入力を
促す(ステップ103)。
When the user inputs necessary items such as data to be registered and data expiration date information (step 101), the data input control unit 2 checks whether the input has been performed according to preset conditions (step 101). 1
02). For example, whether a required item has been input or whether it has been input in a correct format. If the input is not correct, an error message is displayed to prompt the user to input again (step 103).

【0020】次に、更新処理部3は、データ有効期限情
報に基づいて入力されたデータに対する有効期限キーを
作成する(ステップ104)。これは、図3に示したよ
うに、データ有効期限情報を構成する「有効開始」及び
「有効終了」の時間情報のうち「有効開始」の時間情報
を文字列で表現することによって有効期限キーを作成す
る。例えば、「有効開始」が1995年5月2日を表し
ていれば、有効期限キーは、“19950502”とい
う文字列に変換することで作成される。
Next, the update processing unit 3 creates an expiration date key for the input data based on the data expiration date information (step 104). As shown in FIG. 3, the expiration date key is represented by expressing the “valid start” time information of the “valid start” and “valid end” time information constituting the data expiration date information as a character string. Create For example, if “validity start” represents May 2, 1995, the validity term key is created by converting it to a character string “199950502”.

【0021】続けて検索キーを作成する(ステップ10
5)。これは、図3に示したように、個人コードと有効
期限キーとの文字列を結合することにより作成する。図
3の例によれば、個人コード「A123]の後に各レコ
ードデータに含まれる有効期限キーを続ければよい。登
録処理においては、作成した検索キー“A123199
50502”がハッシュテーブル4に登録済みであるこ
とは、本来考えられないので、エラーメッセージを表示
し、再入力を促す(ステップ103)。作成した検索キ
ーがハッシュテーブル4に登録されていないことを確認
すると(ステップ106)、入力データに対応した個人
コードのマスタデータがマスタファイル1に登録されて
いるかを確認する(ステップ107)。新規登録の場合
は、そのままそのマスタデータをマスタファイル1に格
納する(ステップ109)。そして、作成した上記検索
キーをハッシュテーブル4に登録する(ステップ11
0)。
Subsequently, a search key is created (step 10).
5). This is created by combining the character strings of the personal code and the expiration date key as shown in FIG. According to the example of Fig. 3, the expiration date key included in each record data may follow the personal code "A123". In the registration process, the created search key "A123199" is used.
Since it is impossible to imagine that “502502” has already been registered in the hash table 4, an error message is displayed and the user is prompted to re-enter (step 103). It is confirmed that the created search key is not registered in the hash table 4. Upon confirmation (step 106), it is confirmed whether the master data of the personal code corresponding to the input data is registered in the master file 1. (step 107) In the case of new registration, the master data is stored in the master file 1 as it is. (Step 109) Then, the created search key is registered in the hash table 4 (Step 11).
0).

【0022】一方、新規登録でない場合は、同一個人コ
ードのマスタデータが存在しているということなので、
当該マスタデータのうち最新のマスタデータにおける
「有効終了」に終了時期を設定する(ステップ10
8)。設定する値は、新規に書き込むマスタデータにお
ける「有効開始」に指定された時間情報に基づいて作成
する。本実施の形態では、時間情報として日付を用いて
いるので、例えば新規に書き込むマスタデータにおける
「有効開始」が1995年5月2日であれば、その日付
から1日前の日付、すなわち1995年5月1日という
データを直前のマスタデータの「有効終了」に設定す
る。この後、新規なマスタデータをマスタファイル1に
格納し(ステップ109)、作成した上記検索キーをハ
ッシュテーブル4に登録する(ステップ110)。
On the other hand, if it is not a new registration, it means that master data of the same personal code exists.
The end time is set to "valid end" in the latest master data among the master data (step 10).
8). The value to be set is created based on the time information designated as “valid start” in the newly written master data. In this embodiment, the date is used as the time information. For example, if the “valid start” in the newly written master data is May 2, 1995, the date is one day before the date, that is, the date of May 1995 The data of month 1 is set as “valid end” of the immediately preceding master data. Thereafter, the new master data is stored in the master file 1 (step 109), and the created search key is registered in the hash table 4 (step 110).

【0023】次に、マスタファイル1の検索処理につい
て図5に示したフローチャートを用いて説明する。
Next, the search processing of the master file 1 will be described with reference to the flowchart shown in FIG.

【0024】まず、誰のいつの時点のデータを取得した
いのかという検索項目を入力する(ステップ121)。
具体的には、個人コードと年月日とを入力する。そし
て、検索部5は、この入力された検索項目からハッシュ
テーブル4を検索するためのキーを作成する(ステップ
122)。具体的には、ハッシュテーブル4に登録する
検索キーの生成方法と同様で、個人コードと年月日を変
換することによって得た文字列とを結合することで作成
する。そして、この作成したキーでハッシュテーブル4
を検索する(ステップ123)。該当するデータすなわ
ち検索キーがハッシュテーブル4に登録されているかど
うかを判断し(ステップ124)、登録されていればマ
スタファイル1から該当するレコード(マスタデータ)
を取得し表示する(ステップ125)。なお、ハッシュ
テーブル4には、各検索キーに対応したマスタファイル
1内におけるマスタデータの格納アドレスが記憶されて
いる。もし、一致する検索キーがなければエラーメッセ
ージを表示するなどエラー処理を行う(ステップ12
6)。但し、有効期限の開始時期と一致しない年月日が
入力されるのであれば、同一個人コードを含む検索キー
の中で大小比較を行うことで該当する検索キーを一意に
特定する処理が必要となる。このように、検索キーを登
録したハッシュテーブル4を設けたことによりマスタフ
ァイル1に登録されているレコードを高速に検索するこ
とができる。
First, a search item is input as to who and when to acquire data (step 121).
Specifically, a personal code and a date are input. Then, the search unit 5 creates a key for searching the hash table 4 from the input search item (step 122). Specifically, it is created by combining the personal code and the character string obtained by converting the date in the same manner as the method of generating the search key registered in the hash table 4. Then, with this created key, hash table 4
(Step 123). It is determined whether the corresponding data, that is, the search key is registered in the hash table 4 (step 124). If the data is registered, the corresponding record (master data) from the master file 1 is determined.
Is acquired and displayed (step 125). The storage address of the master data in the master file 1 corresponding to each search key is stored in the hash table 4. If there is no matching search key, error processing such as displaying an error message is performed (step 12).
6). However, if a date that does not match the start time of the expiration date is entered, it is necessary to perform processing to uniquely identify the relevant search key by comparing the size of the search keys containing the same personal code. Become. As described above, by providing the hash table 4 in which the search key is registered, the record registered in the master file 1 can be searched at high speed.

【0025】例えば、図3において個人コード“A12
3”の社員が1994年4月2日からどこに配属された
かを知りたいとき、ユーザは、個人コード“A12
3”、1994年4月2日及び取得したいデータは所属
コードである旨を検索項目として入力する。そのとき、
検索部5は、ハッシュテーブル4を介してマスタファイ
ル1を検索するためのキーを“A1231994040
2”を生成して検索を行うことで、その時の当該社員の
所属コードを容易に取得することができる。
For example, in FIG. 3, the personal code "A12
When the user wants to know where the employee of “3” has been assigned since April 2, 1994, the user enters the personal code “A12
3 ", April 2, 1994, and that the data to be acquired is an affiliation code is input as a search item.
The search unit 5 sets the key for searching the master file 1 via the hash table 4 to “A1231994040”.
By generating “2” and performing a search, it is possible to easily obtain the affiliation code of the employee at that time.

【0026】以上のように、本実施の形態によれば、マ
スタファイル1内のマスタデータを更新する際、先に書
き込んだデータ(更新前のデータ)を後から書き込むデ
ータ(更新後のデータ)で上書きせずにデータ有効期限
情報を付加して保存するようにし、検索時にはデータ有
効期限情報に基づいて検索を行うようにしたので、過去
に設定したデータの有効性が失われた後でも参照するこ
とができる。従って、例えば、社員の所属コード以外に
も婚姻前の氏なども保存されたままであるので、過去の
職歴などのデータをマスタファイル1を検索することに
よって得ることができる。トランザクションファイルな
どとは異なり、通常ある固有コードのデータの移り変わ
りを保持しないマスタファイルにおいて、本実施の形態
では、マスタデータの履歴保持をするようにした。な
お、システムによっては、期限に関する情報をデータと
して持たせている場合もあるであろうが、それは、「期
間」というデータを取り扱っているにすぎず、データの
有効性の判断材料としていない。すなわち、同一個人コ
ードにおける単なる履歴情報という位置づけではなく、
同一個人コードに対応した複数のマスタデータの中から
指定日における情報のみを抽出することができる。一
方、データの履歴保持をすることによる弊害、例えば情
報量の増大に伴う検索処理速度の遅延などが考えられる
が、本実施の形態では、検索キーを登録したハッシュテ
ーブル4を設けたことによりその弊害を十分に解消する
ことができる。
As described above, according to the present embodiment, when updating the master data in the master file 1, the previously written data (the data before the update) is written later (the data after the update). The data expiration date information is added and saved without overwriting, and the search is performed based on the data expiration date information at the time of search, so even after the validity of the data set in the past is lost, refer to it can do. Therefore, for example, since a person before marriage and the like other than the affiliation code of the employee are still stored, data such as past employment history can be obtained by searching the master file 1. Unlike a transaction file or the like, in a master file that does not normally hold a transition of data of a specific code, in the present embodiment, the history of the master data is stored. In some systems, information about a time limit may be provided as data. However, this only deals with data called “period” and does not serve as a material for judging the validity of the data. In other words, it is not just history information in the same personal code,
Only information on a specified date can be extracted from a plurality of master data corresponding to the same personal code. On the other hand, there may be a problem caused by retaining the history of data, for example, a delay in the search processing speed due to an increase in the amount of information. In the present embodiment, the hash table 4 in which the search keys are registered is provided. The adverse effects can be sufficiently eliminated.

【0027】また、マスタデータに有効期限情報を付加
することにより過去の職歴の取得が可能となるだけでな
く将来に関する情報をもマスタファイル1に事前に登録
することができる。従って、年度代わりなどに人事異動
の対象となった社員が多数いるような場合でも実際の転
属日を待ってまとめてマスタファイル1の更新を行う必
要はなく、マスタファイル1へのデータ登録を徐々に行
うことができる。
Further, by adding expiration date information to the master data, not only is it possible to acquire a past job history, but also information about the future can be registered in the master file 1 in advance. Therefore, even when there are a large number of employees who have been subject to personnel changes in place of the fiscal year, etc., there is no need to wait for the actual transfer date and update the master file 1 collectively. Can be done.

【0028】また、本実施の形態では、マスタファイル
1に登録されている将来のマスタデータの削除、変更等
の更新処理も可能である。例えば、データを削除する場
合は、削除対象となるマスタデータの「有効終了」で同
一個人コードにおける前段のマスタデータの「有効終
了」を更新するか、削除対象となるマスタデータの「有
効開始」で、同一個人コードにおける後段のマスタデー
タの「有効開始」を更新するなどして期間の調整をする
必要がある。もちろん、削除対象となるマスタデータの
削除のみを行うようにしてもよい。これらは、設計事項
である。
In the present embodiment, it is also possible to perform an update process such as deleting or changing future master data registered in the master file 1. For example, in the case of deleting data, the "valid end" of the master data to be deleted is updated with the "valid end" of the preceding master data in the same personal code, or the "valid start" of the master data to be deleted is changed. Therefore, it is necessary to adjust the period by updating the “valid start” of the subsequent master data in the same personal code. Of course, only the master data to be deleted may be deleted. These are design considerations.

【0029】実施の形態2.上記実施の形態1では、本
発明に係るデータ管理システムを、人事管理に関するシ
ステムに適用した場合を例にしたが、本実施の形態で
は、番組の制作を管理するシステムに適用した場合を例
にして説明する。なお、本実施の形態における機能ブロ
ックは、図1と同様となる。図6及び図7は、本実施の
形態における個人情報及び業務情報のためのマスタファ
イル1のデータフォーマット例を示した図である。個人
情報のマスタファイル1には、スタッフ等の各個人を識
別するための固有コードである個人コードに対応させ
て、氏名、業務コード、及び担当業務等の更新可能なマ
スタデータに加えて有効期限キー並びにデータ有効期限
情報が付加されてマスタファイル1に格納される。業務
コード及び担当業務には、個人が担当した番組の業務コ
ード及びその番組制作においてした照明、音声等の業務
がそれぞれ登録される。有効期限キー及びデータ有効期
限情報を構成する有効開始、有効終了は、上記実施の形
態1と同様である。
Embodiment 2 In the first embodiment, a case where the data management system according to the present invention is applied to a system relating to personnel management is described as an example. In the present embodiment, a case where the data management system is applied to a system which manages program production is described as an example. Will be explained. Note that functional blocks in the present embodiment are the same as those in FIG. FIGS. 6 and 7 are diagrams showing examples of the data format of the master file 1 for personal information and business information in the present embodiment. The personal information master file 1 is associated with a personal code, which is a unique code for identifying each individual such as a staff member, and includes an expiration date in addition to renewable master data such as a name, a business code, and a work in charge. The key and data expiration date information are added and stored in the master file 1. In the work code and the work in charge, the work code of the program in charge of the individual and the work such as lighting and sound in the production of the program are registered. The validity start and validity end constituting the validity period key and the data validity period information are the same as in the first embodiment.

【0030】本実施の形態における業務情報のマスタフ
ァイル1は、番組制作に関わる情報を格納する。業務コ
ードは、各番組に割り振られた番組コードである。業務
情報のマスタファイル1は、各業務コードに対応させて
業務名及びスタッフリストに加えて有効期限キー並びに
データ有効期限情報が付加されてマスタファイル1に格
納される。スタッフリストには、カメラ、照明等の各種
担当業務に、担当する技術者名を指定することによって
作成される。有効期限キー及びデータ有効期限情報を構
成する有効開始、有効終了は、上記実施の形態1と同様
である。
The business information master file 1 in the present embodiment stores information related to program production. The business code is a program code assigned to each program. The master file 1 of the business information is stored in the master file 1 with an expiration date key and data expiration date information added to the business name and the staff list in association with each business code. The staff list is created by designating the name of a technician in charge of various tasks such as camera and lighting. The validity start and validity end constituting the validity period key and the data validity period information are the same as in the first embodiment.

【0031】ところで、各番組には、番組コード(業務
コード)がユニークに割り振られるので、この番組コー
ドによって他の番組と識別することができる。但し、前
述したように、この業務コードは、同時期にはユニーク
に指定されるが、番組が終了し未使用となったものは、
後の他の番組によって再利用される。つまり、従来で
は、使用されていた業務コードを他の番組に割り振るこ
とで、その業務コードが指定されていた番組に関する業
務情報が上書きされ消去されてしまっていた。
Each program is uniquely assigned a program code (business code), and can be distinguished from other programs by this program code. However, as described above, this business code is specified uniquely during the same period,
Reused later by other programs. That is, in the related art, by assigning a used business code to another program, the business information on the program for which the business code is specified has been overwritten and deleted.

【0032】そこで、本実施の形態においては、他の番
組に同じ業務コードが割り当てられた場合でも上記実施
の形態1において説明したように、既存のマスタデータ
を新規なマスタデータで上書きせずにデータ有効期限情
報を付加して保存するようにした。これにより、番組が
終了した後に制作費用がどのくらいかかったのか後から
でも算出することができ、また、制作が終了した番組に
誰がスタッフとして参加していたのかなどを容易に知る
ことができる。具体的な例を上げて説明すると、例え
ば、メンバ甲が平成8年12月1日から15日までを照
明、平成8年12月18日から25日までを音声を担当
することになったとすると、平成8年12月1日から担
当した業務「照明」を得るためには、メンバ甲の個人コ
ード、1996年12月1日及び担当業務のデータが欲
しい旨を入力指定することによって、担当業務が「照
明」であることを得ることができる。これは、検索する
月日がいつであっても同じ結果が得られる。
Therefore, in the present embodiment, even when the same business code is assigned to another program, the existing master data is not overwritten with new master data as described in the first embodiment. Added data expiration date information and save. As a result, it is possible to calculate the cost of the production after the end of the program, and it is possible to easily know who participated as a staff member in the finished program. To explain with a specific example, for example, suppose that member A will be in charge of lighting from December 1 to 15, 1996, and voice from December 18 to 25, 1996. In order to obtain the work “Lighting” that was assigned from December 1, 1996, input and specify that the member's personal code, December 1, 1996, and the data of the assigned task are desired. Is "illumination". This means that the same result can be obtained regardless of the date of the search.

【0033】一方、番組を制作する前には、スタッフを
予め確保しておかなければならないが、本実施の形態に
おいては、将来における番組に関する情報を業務情報の
マスタファイル1に登録しておくことができるので、ど
の番組に誰がスタッフとして参加したのかなどを知りた
い場合でも、容易に把握することができる。また、同一
業務コードの番組の制作途中のときからでもこれらのマ
スタデータを事前に登録しておくことができる。
On the other hand, before producing a program, staff must be reserved in advance. In the present embodiment, information about a future program must be registered in the master file 1 of the business information. Therefore, even if it is desired to know who participated in which program as a staff member, it can be easily grasped. Also, these master data can be registered in advance even during the production of a program having the same business code.

【0034】このようにして、本実施の形態においても
上記実施の形態1と同様の効果を奏することができる。
In this manner, the present embodiment can provide the same effects as those of the first embodiment.

【0035】なお、実施の形態においては、人事管理や
番組制作に関するシステムに適用した例で説明したが、
人材派遣や工事機材のレンタルなどのシステムにも応用
することができる。
In the embodiment, an example in which the present invention is applied to a system relating to personnel management and program production has been described.
It can also be applied to systems such as temporary staffing and rental of construction equipment.

【0036】[0036]

【発明の効果】本発明によれば、更新前のマスタデータ
を更新後のマスタデータによって上書きすることなく、
データ有効期限情報を付加してマスタファイルに保存す
るようにし、検索時にはデータ有効期限情報に基づいて
検索を行うようにしたので、過去のマスタデータを参照
することができる。
According to the present invention, the master data before update is not overwritten by the master data after update,
Since the data expiration date information is added and stored in the master file, and the retrieval is performed based on the data expiration date information at the time of retrieval, it is possible to refer to past master data.

【0037】また、更新後のマスタデータにもデータ有
効期限情報を付加してマスタファイルに格納するように
すれば、当該マスタデータが実際に有効なデータとなる
前に予めマスタファイルに登録しておくことができる。
これにより、将来的に有効となるマスタデータをマスタ
ファイルに事前に登録することができる。もちろん、将
来に関するマスタデータを参照することができる。
If data expiration date information is added to the updated master data and stored in the master file, the master data is registered in the master file before the master data becomes effective data. I can put it.
As a result, master data that will be valid in the future can be registered in the master file in advance. Of course, master data relating to the future can be referred to.

【0038】また、固有コードとデータ検索用のキーに
基づいて作成した検索キーを登録したハッシュテーブル
を設けたことにより、マスタファイルへの検索処理を高
速に行うことができる。
Further, by providing a hash table in which a search key created based on a unique code and a data search key is registered, a search process for a master file can be performed at high speed.

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

【図1】 本発明に係るデータ管理システムの実施の形
態1を示した機能ブロック図である。
FIG. 1 is a functional block diagram showing a first embodiment of a data management system according to the present invention.

【図2】 実施の形態1におけるマスタファイルのデー
タフォーマット例を示した図である。
FIG. 2 is a diagram showing an example of a data format of a master file according to the first embodiment.

【図3】 実施の形態1におけるデータ有効期限情報、
有効期限キー及びハッシュテーブルの関係を示した図で
ある。
FIG. 3 shows data expiration date information according to the first embodiment,
FIG. 4 is a diagram illustrating a relationship between an expiration date key and a hash table.

【図4】 実施の形態1における個人情報のマスタファ
イルへの登録処理を示したフローチャートである。
FIG. 4 is a flowchart showing a process of registering personal information in a master file according to the first embodiment.

【図5】 実施の形態1におけるマスタファイルの検索
処理を示したフローチャートである。
FIG. 5 is a flowchart showing a master file search process according to the first embodiment.

【図6】 実施の形態2における個人情報のマスタファ
イルのデータフォーマット例を示した図である。
FIG. 6 is a diagram showing an example of a data format of a master file of personal information according to the second embodiment.

【図7】 実施の形態2における業務情報のマスタファ
イルのデータフォーマット例を示した図である。
FIG. 7 is a diagram showing an example of a data format of a master file of business information according to the second embodiment.

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

1 マスタファイル、2 データ入力制御部、3 更新
処理部、4 ハッシュテーブル、5 検索部、6 デー
タ出力部。
1 master file, 2 data input control section, 3 update processing section, 4 hash table, 5 search section, 6 data output section.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 更新後のマスタデータによって上書きす
ることなく更新前のマスタデータにデータ有効期限情報
を付加してマスタファイルに保存することを特徴とする
データ管理システム。
1. A data management system characterized by adding data expiration date information to master data before update without overwriting with master data after update and storing the data in a master file.
【請求項2】 前記更新後のマスタデータにも前記デー
タ有効期限情報を付加して前記マスタファイルに格納す
ることを特徴とする請求項1記載のデータ管理システ
ム。
2. The data management system according to claim 1, wherein said updated master data is added to said data expiration date information and stored in said master file.
【請求項3】 前記データ有効期限情報は、前記マスタ
データの内容が有効とされる期間の開始時期と終了時期
との情報を含むことを特徴とする請求項1又は2いずれ
かに記載のデータ管理システム。
3. The data according to claim 1, wherein the data expiration date information includes information of a start time and an end time of a period in which the content of the master data is valid. Management system.
【請求項4】 前記データ有効期限情報に基づいて生成
したデータ検索用のキーを前記マスタデータに付加して
前記マスタファイルに格納することを特徴とする請求項
1又は2いずれかに記載のデータ管理システム。
4. The data according to claim 1, wherein a key for data search generated based on the data expiration date information is added to the master data and stored in the master file. Management system.
【請求項5】 データの識別情報である固有コードを含
むマスタデータを更新可能に格納するマスタファイル
と、 入力されたデータ有効期限情報を前記マスタデータに付
加して前記マスタファイルへの登録を行うマスタファイ
ル更新処理手段と、 固有コード及び前記データ有効期限情報に基づいて前記
マスタファイルの検索を行うマスタファイル検索手段
と、 を有し、 前記マスタファイル検索手段は、同一の固有コードを含
む前記マスタデータの中から入力指定された時間情報を
満足するマスタデータを選択することを特徴とするデー
タ管理システム。
5. A master file storing a master data including a unique code as data identification information in an updatable manner, and inputting data expiration date information to the master data to register the master data. Master file update processing means; and master file search means for searching for the master file based on the unique code and the data expiration date information, wherein the master file search means includes the same master code including the same unique code. A data management system, wherein master data that satisfies input and designated time information is selected from data.
【請求項6】 前記固有コードと前記データ有効期限情
報に基づいて生成された検索用のキーとを組み合わせて
生成した検索キーを登録するハッシュ記憶手段を有する
ことを特徴とする請求項5記載のデータ管理システム。
6. The apparatus according to claim 5, further comprising a hash storage unit for registering a search key generated by combining the unique code and a search key generated based on the data expiration information. Data management system.
JP8311890A 1996-11-22 1996-11-22 Data management system Pending JPH10154090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8311890A JPH10154090A (en) 1996-11-22 1996-11-22 Data management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8311890A JPH10154090A (en) 1996-11-22 1996-11-22 Data management system

Publications (1)

Publication Number Publication Date
JPH10154090A true JPH10154090A (en) 1998-06-09

Family

ID=18022652

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8311890A Pending JPH10154090A (en) 1996-11-22 1996-11-22 Data management system

Country Status (1)

Country Link
JP (1) JPH10154090A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11259351A (en) * 1998-03-11 1999-09-24 Ntt Communication Ware Kk Data base device, shared data base device, shared data base system, data extracting method for shared data base device and storage medium recording data extraction program for shared data base device
JP2000132596A (en) * 1998-10-21 2000-05-12 Ntt Data Corp Electronic trade transaction system and center therefor
JP5218060B2 (en) * 2006-10-06 2013-06-26 日本電気株式会社 Information retrieval system, information retrieval method and program
JP2013164647A (en) * 2012-02-09 2013-08-22 Nomura Research Institute Ltd Time limit data history management system
WO2015049804A1 (en) * 2013-10-04 2015-04-09 富士通株式会社 Search program, search method, and search device
JP2015064905A (en) * 2014-12-22 2015-04-09 株式会社野村総合研究所 History management system for time limit data

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11259351A (en) * 1998-03-11 1999-09-24 Ntt Communication Ware Kk Data base device, shared data base device, shared data base system, data extracting method for shared data base device and storage medium recording data extraction program for shared data base device
JP2000132596A (en) * 1998-10-21 2000-05-12 Ntt Data Corp Electronic trade transaction system and center therefor
JP5218060B2 (en) * 2006-10-06 2013-06-26 日本電気株式会社 Information retrieval system, information retrieval method and program
JP2013164647A (en) * 2012-02-09 2013-08-22 Nomura Research Institute Ltd Time limit data history management system
WO2015049804A1 (en) * 2013-10-04 2015-04-09 富士通株式会社 Search program, search method, and search device
JPWO2015049804A1 (en) * 2013-10-04 2017-03-09 富士通株式会社 Search program, search method, and search device
JP2015064905A (en) * 2014-12-22 2015-04-09 株式会社野村総合研究所 History management system for time limit data

Similar Documents

Publication Publication Date Title
US6442543B1 (en) Method and apparatus for changing temporal database information
US20030154197A1 (en) Flexible relational data storage method and apparatus
JP4100156B2 (en) Data conversion system
JP2001209562A (en) System of deducing conversion rules
KR20060054281A (en) System and method for electronically managing discovery pleading information
JP2001306372A (en) Method for managing document and storage medium storing program for executing the method
JPH10154090A (en) Data management system
JPH0895767A (en) Program generating method using program component
JP2003150762A (en) Cooperation method for project information and its system
JP2009187401A (en) Document management system, document management apparatus, and document managing method and program
JP2000181954A (en) Data processing system
JP2979169B2 (en) HR information processing equipment
JP2005092619A (en) Business system and its program
JP3478558B2 (en) Object storage search method in database
JP3984675B2 (en) Family register information processing method and family register information system
JP2007122598A (en) Information processor, and information processing system and program
JP2000010840A (en) Identifier generation system for computer system
JP2002278956A (en) Device and method for managing document
JP2006163514A (en) Personnel selection support system and program applied thereto
JP2008015637A (en) File data management method and its system
JP2003296275A (en) User account management system
JP2005092620A (en) Business process management system
JP2001005865A (en) Data deleting device
JP2004227603A (en) Data processing apparatus, data processing system, and storage medium
JPH06282367A (en) Data input method