JPH04273576A - Data base inquiry system - Google Patents

Data base inquiry system

Info

Publication number
JPH04273576A
JPH04273576A JP3033881A JP3388191A JPH04273576A JP H04273576 A JPH04273576 A JP H04273576A JP 3033881 A JP3033881 A JP 3033881A JP 3388191 A JP3388191 A JP 3388191A JP H04273576 A JPH04273576 A JP H04273576A
Authority
JP
Japan
Prior art keywords
function
condition
input
data
retrieval
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
JP3033881A
Other languages
Japanese (ja)
Inventor
Satoru Hirato
平戸 哲
Toshikazu Maruzeni
丸銭 寿和
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.)
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Solution Innovators Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp, NEC Solution Innovators Ltd filed Critical NEC Corp
Priority to JP3033881A priority Critical patent/JPH04273576A/en
Publication of JPH04273576A publication Critical patent/JPH04273576A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To minimize a handling time for input of the same item by retrieving a data base on the conditional expression for the retrieval and by displaying the retrieval result on the terminal screen. CONSTITUTION:When a retrieval item number is inputted from the keyboard, a condition input function 1 displays the input field for the retrieval item corresponding to the number on the back of same line and urges the input of the value. A condition preservation function 2 preserves the inputted value with the condition that it remains inputted in the working memory or the working file of the inquiry system. Furthermore, a conditional formula generation function 3 generates the conditional formula with the names and values of the items preserved in the working memory or the working file of the condition preservation function 2, while a data base retrieval function 4 retrieves the data base based on the conditional formula generated by the conditional formula generation function 3. And an answer screen display function 5 reads the data showing physical or logical storage position for the data for a case from the working file generated by the data base retrieval function and displays the data on the terminal screen.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は通信回線を介しデータ伝
送を行うオンラインシステムにおけるデータベースの検
索方法に関し、特に端末装置からの照会要求に対して回
答を返すデータベース照会システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database search method in an online system that transmits data via a communication line, and more particularly to a database inquiry system that returns answers to inquiry requests from terminal devices.

【0002】0002

【従来の技術】従来のデータベースの検索方法は利用者
が意識して使用するユーザデータ以外に、検索処理の高
速化のために必要なデータ索引ファイルを作成し使用し
ている。データ索引ファイルとは、あるユーザデータの
データベース上の物理的あるいは論理的格納位置を示す
データと、検索対象となる単一項目のデータから構成さ
れている。データ索引ファイルは索引順編成ファイルと
呼ばれるファイル編成で実現されており、検索対象とな
る単一項目のユーザデータはそのキーとなっている。
2. Description of the Related Art Conventional database search methods create and use data index files necessary for speeding up search processing, in addition to user data that is consciously used by the user. A data index file is composed of data indicating the physical or logical storage location of certain user data on a database, and data of a single item to be searched. The data index file is realized by a file organization called an index sequential organization file, and a single item of user data to be searched is the key.

【0003】従来の検索システムは検索対象となるデー
タをキーとしてデータ索引ファイルを読み込み、ユーザ
データの物理的あるいは論理的格納位置データを作業用
ファイルに書き出す。この作業ファイルを部分集合ファ
イルと呼ぶ。
A conventional search system reads a data index file using data to be searched as a key, and writes physical or logical storage location data of user data to a work file. This work file is called a subset file.

【0004】検索システムは、検索条件を条件式と呼ば
れる論理式で表現する場合がある。条件式とは、ある単
一の条件あるいは独立する単一の条件の複合条件で構成
されている。データベースを条件式で検索し作成した部
分集合ファイルに対して別の条件式で検索しようとする
場合、部分集合ファイルの内容を読み込んで検索対象と
なるユーザデータの格納位置を知りそのデータを読み出
して該当するかしないかを判断する方法と、新しい条件
式の部分集合を生成して前に生成した部分集合との積を
もとめて部分集合を生成する方法とがある。この時、以
前に入力した項目の値を1つでも入力し直したい場合は
今まで入力した項目を全て入力し直さなければならなか
った。
[0004] Search systems sometimes express search conditions using logical expressions called conditional expressions. A conditional expression is composed of a single condition or a composite condition of independent single conditions. If you want to search the database using a conditional expression and create a subset file using another conditional expression, read the contents of the subset file, find out the storage location of the user data to be searched, and read that data. There is a method of determining whether the condition is applicable or not, and a method of generating a new subset of the conditional expression and multiplying it with a previously generated subset to generate the subset. At this time, if the user wants to re-enter even one value of an item that was previously input, he or she has to re-enter all of the items that have been input so far.

【0005】[0005]

【発明が解決しようとする課題】既にある条件式で検索
し生成したデータベースの部分集合が照会結果として得
たい部分集合より小さくなる場合、以前に検索した条件
式を形成する複数の単一条件の1つを除いた条件式で検
索処理を行おうとすると今までキーボードから入力した
複数の単一条件を全て再入力しなくてはならないという
欠点がある。
[Problem to be Solved by the Invention] When the subset of a database generated by searching with an existing conditional expression is smaller than the subset desired as a query result, it is necessary to combine multiple single conditions forming the previously searched conditional expression. If you try to perform a search process using conditional expressions other than one, there is a drawback that you will have to re-enter all of the multiple single conditions that you have previously entered from the keyboard.

【0006】本発明の目的は、キーボードから入力した
複数の単一条件の外したい1つの単一条件を再入力する
だけで前にキーボードから入力した複数の単一条件を再
入力する必要をなくすることにある。
[0006] An object of the present invention is to eliminate the need to re-enter a plurality of single conditions previously input from the keyboard by simply re-entering one single condition that is desired to be removed from a plurality of single conditions input from the keyboard. It's about doing.

【0007】[0007]

【課題を解決するための手段】本発明のデータベース照
会システムは、検索条件を入力する条件入力機能、入力
された条件を保存する条件保存機能、保存された条件を
もとに検索のための条件式を生成する条件式生成機能、
条件式をもとにデータベースを検索するデータベース検
索機能、検索結果を端末画面に表示する回答画面表示機
能とを有する。
[Means for Solving the Problems] The database inquiry system of the present invention has a condition input function for inputting search conditions, a condition storage function for saving the input conditions, and a condition for searching based on the saved conditions. Conditional expression generation function that generates expressions,
It has a database search function that searches the database based on conditional expressions, and an answer screen display function that displays the search results on the terminal screen.

【0008】また、本発明のデータベース照会システム
は、データベース照会システムにおいて、保存された条
件に新たに入力された条件を反映させて条件式を生成し
検索する。
Further, in the database inquiry system of the present invention, a newly input condition is reflected in the saved condition to generate a conditional expression and search is performed.

【0009】[0009]

【実施例】以下、本発明について図面を参照しながら説
明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.

【0010】図1は本発明の一実施例を示す流れ図であ
る。同図においてデータベース照会システムは、条件入
力機能1,条件保存機能2,条件式生成機能3,データ
ベース検索機能4,回答画面表示機能5から構成されて
いる。
FIG. 1 is a flowchart showing one embodiment of the present invention. In the figure, the database inquiry system is comprised of a condition input function 1, a condition storage function 2, a condition expression generation function 3, a database search function 4, and an answer screen display function 5.

【0011】条件入力機能1は、キーボードから検索項
目番号を入力すると、同一の行の後ろにその番号に対応
する検索項目の入力フィールドを表示し、その値の入力
を促す。次にその値が妥当な値であるかの検査を行い、
妥当な値でなければメッセージ文を端末画面に表示して
再度検索項目の入力を促し、妥当な値ならば条件保存機
能2に処理を移す。
When a search item number is input from the keyboard, the condition input function 1 displays an input field for the search item corresponding to that number at the end of the same line, prompting the user to input the value. Next, check whether the value is a valid value,
If the value is not valid, a message is displayed on the terminal screen to prompt the user to input the search item again, and if the value is valid, the process is transferred to the condition storage function 2.

【0012】ここで仮にa1は項目番号,b1は項目名
,c1は入力した値とする。例えば端末画面上にカーソ
ルが表示されオペレータはa1をキーボードから入力す
ると、同一画面の同一行にb1が表示され、その後のフ
ィールドにカーソルが表示される。このときオペレータ
はc1をキーボードから入力する。仮にc1の値がある
コードでなければならないとすると、照会システムは該
当するコードテーブルを参照し、その値が妥当であるか
検査する。c1が該当するコードとして妥当なら、次の
項目番号の入力を行う処理を繰り返す。項目番号99が
入力の終わりを示すなら、99が入力されると条件入力
機能1を終了して条件保存機能2を行う。
Here, it is assumed that a1 is an item number, b1 is an item name, and c1 is an input value. For example, when a cursor is displayed on the terminal screen and the operator inputs a1 from the keyboard, b1 is displayed on the same line on the same screen, and the cursor is displayed in the subsequent field. At this time, the operator inputs c1 from the keyboard. If the value of c1 must be a certain code, the query system refers to the corresponding code table and checks whether the value is valid. If c1 is valid as the applicable code, the process of inputting the next item number is repeated. If item number 99 indicates the end of input, when 99 is input, condition input function 1 is ended and condition storage function 2 is performed.

【0013】条件保存機能2は、入力された値を照会シ
ステムの作業メモリあるいは作業ファイルに入力された
ままのイメージで保存する。ただし、前回検索した結果
からさらに検索する絞り込み検索ではなく、新規に全デ
ータに対して検索したい場合には照会システムの作業メ
モリあるいは作業ファイルを初期化した後に保存する。   条件式生成機能3は、条件保存機能2で作業メモリ
あるいは作業ファイルに保存した項目の値と項目名で条
件式をつくる。例えばc1が入力されたならば“b1=
c1”は項目b1の値がc1であるデータを検索する条
件式である。
The condition storage function 2 stores the input values in the working memory or working file of the inquiry system as they are input. However, if you want to perform a new search for all data rather than a narrowed search that further searches from the previous search results, initialize and save the work memory or work file of the inquiry system. The conditional expression generation function 3 creates a conditional expression using the item values and item names saved in the work memory or work file by the condition storage function 2. For example, if c1 is input, “b1=
c1'' is a conditional expression that searches for data in which the value of item b1 is c1.

【0014】データベース検索機能4は、条件式生成機
能3で生成した条件式に基いてデータベースを検索する
。例えば“b1=c1”の条件式に対してb1のデータ
索引ファイルでレコードキーがc1のレコードを読む。 そのレコードには該当データのデータベース上の物理的
あるいは論理的格納位置を示すデータが格納されており
、そのデータを作業ファイルに該当件数分だけ書き込む
The database search function 4 searches the database based on the conditional expression generated by the conditional expression generation function 3. For example, for the conditional expression "b1=c1", read the record whose record key is c1 in the data index file of b1. The record stores data indicating the physical or logical storage location of the corresponding data on the database, and the data is written to the work file for the corresponding number of items.

【0015】回答画面表示機能5は、データベース検索
機能4により作成された作業ファイルより1件分のデー
タの物理的あるいは論理的格納位置を示すデータを読み
だし端末画面に表示する。その際、次のデータを表示す
るか、回答画面表示機能5を終了するかを端末キーボー
ドからオペレータに入力を促す。
The answer screen display function 5 reads out data indicating the physical or logical storage location of one item of data from the work file created by the database search function 4 and displays it on the terminal screen. At this time, the operator is prompted to input from the terminal keyboard whether to display the next data or to terminate the answer screen display function 5.

【0016】[0016]

【発明の効果】本発明により次に述べる効果を挙げるこ
とができる。従来の条件式の引き継ぎや部分集合ファイ
ルを引き継ぐ方法と違い条件のしぼり込みやゆるめが自
由に行え、同一項目の入力の手間を最小限におさえるこ
とができるためマンマシンインターフェースの向上が図
れる。また、入力された項目から条件式を常に新規に生
成することによって最適化された条件式が生成されるた
め、検索時間の短縮が図れる。
[Effects of the Invention] The following effects can be achieved by the present invention. Unlike the conventional method of inheriting conditional expressions or inheriting subset files, conditions can be narrowed down or loosened freely, and the effort of inputting the same items can be kept to a minimum, improving the man-machine interface. Furthermore, since an optimized conditional expression is generated by constantly generating a new conditional expression from input items, search time can be reduced.

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

【図1】本発明の一実施例を示す流れ図。FIG. 1 is a flow chart showing one embodiment of the present invention.

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

1    条件入力機能 2    条件保存機能 3    条件式生成機能 4    データベース検索機能 5    回答画面表示機能 1 Condition input function 2 Condition save function 3 Conditional expression generation function 4 Database search function 5 Answer screen display function

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  検索条件を入力する条件入力機能、入
力された条件を保存する条件保存機能、保存された条件
をもとに検索のための条件式を生成する条件式生成機能
、条件式をもとにデータベースを検索するデータベース
検索機能、検索結果を端末画面に表示する回答画面表示
機能とを有することを特徴とするデータベース照会シス
テム。
[Claim 1] A condition input function for inputting search conditions, a condition save function for saving input conditions, a condition expression generation function for generating a condition expression for a search based on the saved conditions, and a condition expression generation function for generating a condition expression for searching based on the saved conditions. A database inquiry system characterized by having a database search function for searching a database based on a database, and an answer screen display function for displaying search results on a terminal screen.
【請求項2】  請求項1記載のデータベース照会シス
テムにおいて、保存された条件に新たに入力された条件
を反映させて条件式を生成し検索することを特徴とする
データベース照会システム。
2. The database inquiry system according to claim 1, wherein a conditional expression is generated and searched by reflecting a newly input condition on a saved condition.
JP3033881A 1991-02-28 1991-02-28 Data base inquiry system Pending JPH04273576A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3033881A JPH04273576A (en) 1991-02-28 1991-02-28 Data base inquiry system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3033881A JPH04273576A (en) 1991-02-28 1991-02-28 Data base inquiry system

Publications (1)

Publication Number Publication Date
JPH04273576A true JPH04273576A (en) 1992-09-29

Family

ID=12398865

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3033881A Pending JPH04273576A (en) 1991-02-28 1991-02-28 Data base inquiry system

Country Status (1)

Country Link
JP (1) JPH04273576A (en)

Similar Documents

Publication Publication Date Title
US6151604A (en) Method and apparatus for improved information storage and retrieval system
US20070266331A1 (en) Editable table modification
JPH08305616A (en) Data management system
US5732258A (en) Method and apparatus for efficiently evaluating exists and not exists equivalent subqueries
US6856996B2 (en) Method, system, and program for accessing rows in one or more tables satisfying a search criteria
US6356896B1 (en) Data visualization of queries over joins
US6721732B2 (en) Method and system for pre-filling search criteria into a form
JPH0581326A (en) Data base retrieving device
JPH04273576A (en) Data base inquiry system
JPH08329101A (en) Data base system
JP3167412B2 (en) Database search processor
JP2004126680A (en) Sql masking type database access method and computer program
JPH07105223A (en) Data base retrieval device
JPH0916620A (en) Index retrieving system
JPS61170840A (en) Join processing system by partial convolution joining method
WO2019140735A1 (en) Text sorting method and apparatus, and terminal device and medium
US20020087517A1 (en) Enhanced method and system for storing and managing search criteria
JPH05314176A (en) Glossary retrieval and reference processing system
JPS61100834A (en) Word processor
Ringland Design tools for data handling systems
JPH01304531A (en) Data base system
JPH04233664A (en) Data base management system
JPH03113672A (en) Data retrieval device
JPS63155275A (en) Graphic data access system
JPH0793143A (en) Data definition specification generating system