JPH05289920A - Database search method and system - Google Patents
Database search method and systemInfo
- Publication number
- JPH05289920A JPH05289920A JP4095146A JP9514692A JPH05289920A JP H05289920 A JPH05289920 A JP H05289920A JP 4095146 A JP4095146 A JP 4095146A JP 9514692 A JP9514692 A JP 9514692A JP H05289920 A JPH05289920 A JP H05289920A
- Authority
- JP
- Japan
- Prior art keywords
- database
- column
- displayed
- information
- search
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
(57)【要約】
【目的】 データベースの検索範囲の指定を視覚的に行
うことで検索操作を容易にする。
【構成】 データベース206に格納されているデータ
の項目を表示装置201に表示する。表示した項目の中
で検索対象とすべき項目の選択入力に応じて、選択され
た項目に関する統計情報に基づいて、データベースに格
納されている項目のデータの分布状態を表示装置に図形
表示する。表示した図形上における検索範囲の指定に応
答して、データベースへのアクセスのための命令を生成
し、その命令を実行することにより、検索範囲の指定に
応じたデータを検索する。
(57) [Summary] [Purpose] The search operation is facilitated by visually specifying the search range of the database. [Arrangement] The items of data stored in the database 206 are displayed on the display device 201. In response to the selection input of the item to be searched among the displayed items, the distribution state of the data of the item stored in the database is graphically displayed on the display device based on the statistical information on the selected item. In response to the designation of the search range on the displayed graphic, an instruction for accessing the database is generated, and the instruction is executed to retrieve the data according to the designation of the search range.
Description
【0001】[0001]
【産業上の利用分野】本発明はデータベースを対話的に
検索する方法およびそのシステムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and system for interactively searching a database.
【0002】[0002]
【従来の技術】データベースを検索する場合、データベ
ース操作言語を用いて直接データベースを検索する方法
とQBE(Query−By−Example)のよう
に対話的に検索する方法とが利用されている。QBEは
C.J.Date著”An Introduction
to Database”,Addison−Wes
ley出版社1990年発行の第351頁から第355
頁に開示されているように、検索対象となるデータベー
スの列に対する検索条件を指定し、データベースを検索
する。また同書の第492頁から第499頁においても
メニュー方式やフォーム形式によるデータベース検索に
関する方法が開示されている。QBEの特徴はデータベ
ースの属性すなわち表名や列名が画面に表示され、その
表示画面に検索条件をユーザが記述入力する点である。
このためにユーザは表名を知っていれば、列名は表示画
面上に表示されるため、その表に対し列名等の詳細な内
容を覚えておく必要が無い。また同書第135頁から第
165頁に記載されているSQLのような複雑なデータ
ベース操作言語を入力しなくとも、QBEが提供する簡
易操作言語を利用してデータベースを簡単に操作でき
る。2. Description of the Related Art When searching a database, a method of directly searching a database using a database operating language and a method of interactively searching like QBE (Query-By-Example) are used. QBE is C.I. J. Date by "An Introduction
to Database ", Addison-Wes
ley publisher, published in 1990, pages 351 to 355
As disclosed on the page, the search condition is specified for the column of the database to be searched, and the database is searched. Also, from page 492 to page 499 of the same book, a method relating to a database search by a menu system or a form format is disclosed. The feature of QBE is that the attributes of the database, that is, the table name and the column name are displayed on the screen, and the user inputs the search conditions on the display screen.
For this reason, if the user knows the table name, the column name is displayed on the display screen, and it is not necessary to remember detailed contents such as the column name for the table. Further, the database can be easily operated by using the simple operation language provided by QBE without inputting a complicated database operation language such as SQL described on pages 135 to 165 of the same book.
【0003】上記のデ−タベ−ス検索の他に情報検索分
野で利用されるテキストデータに関するデータベース検
索がある。これは対象データベース中のテキストデータ
から、ある条件を満足するテキストデータを検索するた
めに、条件に対応した検索条件式を指定してデータベー
スを検索する。また、その検索結果に対してさらに検索
条件式を付加していくことで検索対象の範囲を絞り込
み、それを繰り返すことにより目的とするテキストデ−
タを得る。In addition to the database search described above, there is a database search for text data used in the information search field. In order to search the text data in the target database for the text data satisfying a certain condition, a search condition expression corresponding to the condition is specified to search the database. In addition, by further adding a search condition expression to the search result, the range of the search target is narrowed down, and by repeating it, the desired text data is obtained.
Get the data.
【0004】上記を拡張したシステムとして地図情報シ
ステムがある。地図情報システムは、画面上の指定点に
対応して表示範囲を絞り込みながら詳細な情報を得ると
いうものである。A map information system is an extended system of the above. The map information system obtains detailed information while narrowing down the display range corresponding to a designated point on the screen.
【0005】さらに、データを、1レコードが1点に対
応する散布図で表示し、散布図上の点の指定に対応して
レコードを検索する方法が特開平1−231175号公
報に開示されている。Further, a method of displaying data in a scatter diagram in which one record corresponds to one point and retrieving the record in correspondence with designation of a point on the scatter diagram is disclosed in Japanese Patent Laid-Open No. 1-231175. There is.
【0006】[0006]
【発明が解決しようとする課題】従来技術ではデータ量
が膨大なデータベースに対して検索の範囲の設定が難し
い。一般的にデータベース検索を行うユーザは、その検
索対象の列にどんな値がどんな分布で入っているか暗黙
的に知っている必要がある。ここでデータベースは表を
基本とするデータの集合であり、表は1つの列見出し行
とデータ値を持つ0個以上の行からなる。列見出し行は
1つ以上の名前付きの列を指定する。2つの列が同じ名
前を持つことはできない。各データ行はその列に対して
ただ1つの値を持つ複数の列からなる。各列のデータが
取りうる値の集合は一般的に定義域と呼ばれる概念であ
る。QBEに代表される対話形式検索においても上記定
義域の値の分布に関する知識を前提にユーザは操作をす
る。ユーザは画面上で検索対象の列に条件演算子と条件
値を指定することでデータを検索する。In the prior art, it is difficult to set the search range for a database with a huge amount of data. Generally, a user who searches a database needs to implicitly know what kind of value and distribution are contained in the searched column. Here, the database is a table-based set of data, and the table includes one column heading row and zero or more rows having data values. The column heading row specifies one or more named columns. No two columns can have the same name. Each data row consists of multiple columns with only one value for that column. The set of values that can be taken by the data in each column is a concept generally called a domain. In the interactive search represented by QBE, the user operates on the premise of knowledge about the distribution of the values in the domain. The user searches the data by specifying the conditional operator and the conditional value in the search target column on the screen.
【0007】地図情報システムでは地図画面の特定範囲
を指定して検索することが一般的に行われている。しか
し地図検索は画面上に表示された道路や建築物などの対
象に対してその形状を図形化し、画面上に図形化された
対象物に対して検索範囲を指定し、その対象物を限定
し、検索操作を行い、その詳細な情報を得る。[0007] In a map information system, it is common practice to specify a specific area of a map screen for searching. However, in map search, the shapes of objects such as roads and buildings displayed on the screen are visualized, the search range is specified for the objects visualized on the screen, and the objects are limited. , Perform a search operation and get detailed information.
【0008】また特開平1−231175号公報に開示
されている方法は、散布図の1点毎に1レコードが対応
している簡易なデータベースで特定レコードを検索する
場合には都合が良いが、一般的なデータベースの検索で
はある検索条件を満たす複数レコードの内容又は各内容
間の関係を出力する必要があり、散布図による方法では
不都合である。The method disclosed in Japanese Patent Application Laid-Open No. 1-231175 is convenient when searching for a specific record in a simple database in which one record corresponds to each point in the scatter diagram. In a general database search, it is necessary to output the contents of a plurality of records satisfying a certain search condition or the relationship between the contents, which is inconvenient in the method using the scatter diagram.
【0009】さらに、一般にビジネスデータはグラフ化
等の形式でメタファ化されるが、それは検索した結果の
視覚化である。Further, generally, business data is metaphorized in a form such as a graph, which is a visualization of a search result.
【0010】本発明の目的は、表示画面上で視覚的に検
索範囲を指定でき、操作性を向上したデータベースの検
索方法及びそのようなデータベースを提供することにあ
る。It is an object of the present invention to provide a database search method and a database such that the search range can be visually specified on the display screen and the operability is improved.
【0011】[0011]
【課題を解決するための手段】上記目的は次のようにし
て達成される。データベースに格納されているデータの
項目を表示装置に表示する。表示した項目の中で検索対
象とすべき項目を入力装置から入力する。その選択入力
に応じて、データベースに格納されている、選択された
項目に関する統計情報に基づいて、その項目のデータの
分布状態を表示装置に図形表示する。表示した図形上に
おける検索範囲の指定を入力装置から受ける。その検索
範囲の指定に応答して、データベースへのアクセスのた
めの命令を生成し、それを実行することにより、指定さ
れた検索範囲に応じたデータを検索する。The above object is achieved as follows. Display the items of data stored in the database on the display device. Input the item to be searched among the displayed items from the input device. In response to the selection input, the distribution state of the data of the selected item is graphically displayed on the display device based on the statistical information regarding the selected item stored in the database. The designation of the search range on the displayed graphic is received from the input device. In response to the designation of the search range, an instruction for accessing the database is generated and executed to search for data according to the designated search range.
【0012】[0012]
【作用】上記による作用を説明する。本検索方法とシス
テムは表示画面上に図形(グラフ)表示されたデータベ
ースのデータの分布情報を表示する。ここで分布情報と
はGabrielle Wiorkowski及びDa
vid Kull共著”DB2 Desigin&De
velopment Guide”,ADDISON−
WESLEY社1990年発行の第405頁から第40
9頁にあるようにSQL文に対しアクセスパス(例えば
利用するインデクス等)の選択基準を提供するための補
助情報であり、その列の取りうる値を分割した範囲毎の
分布情報または定義域毎の分布情報である。この分布情
報は前記文献で述べられているようにユーティリティに
よって取得され辞書等に保持されている。この分布情報
を表示することによってユーザは、表中のある列に対す
るデータの分布状態を把握できる。把握することによ
り、ユーザが詳しく内容を知りたいデータの範囲を決定
する。次にそのデータの範囲を図形(グラフ)表示上の
どの部分か指定する。指定された範囲に対応する検索条
件式をデータベース操作システムが自動生成する。検索
範囲が確定したユーザは自動生成された検索条件式を実
行する指示をシステムに指示することで実際にデータベ
ースを検索する。上記により図形(グラフ)表示からデ
ータベース検索することを可能とする。The operation of the above will be described. This search method and system displays the distribution information of the data in the database displayed graphically (graph) on the display screen. Here, the distribution information means Gabrielle Wirkowski and Da.
vid Kull co-authored "DB2 Design &De"
development Guide ”, ADDison-
Wesley Co., Ltd., 1990, pp. 405 to 40
As shown on page 9, it is auxiliary information for providing a selection criterion of access path (for example, index to be used) for SQL statement, and distribution information or range for each range obtained by dividing possible values of the column. Distribution information. This distribution information is acquired by a utility and stored in a dictionary or the like as described in the above-mentioned document. By displaying this distribution information, the user can grasp the distribution state of the data for a certain column in the table. By grasping the information, the range of data that the user wants to know in detail is determined. Next, the part of the data is designated on the figure (graph) display. The database operation system automatically generates a search condition expression corresponding to the specified range. The user who has determined the search range actually searches the database by instructing the system to execute the automatically generated search condition expression. As described above, the database can be searched from the graphic display.
【0013】[0013]
【実施例】本発明の実施例を図面を用いて詳細に説明す
る。なお実施例中では前述したSQL言語を使用して説
明するが、他のデータベース操作言語であっても良い。Embodiments of the present invention will be described in detail with reference to the drawings. Although the above-mentioned SQL language is used for description in the embodiments, other database operation languages may be used.
【0014】本実施例の概要を示すために図1にデータ
ベースを操作するための表示装置上のウィンドウ101
を示す。データベース操作ウィンドウ101は操作対象
のデータベースに関する情報を表示するための画面であ
る。表一覧102は、データベースシステムに格納され
ている表の一覧である。この一覧の表示はアイコン等の
視覚化表現をとっても構わない。列一覧103はある特
定の表が持つ列の一覧であり、図1では社員表の持つ列
一覧を表示している。列分布情報ウィンドウ104は列
一覧の特定の列の持つデータの取りうる値(定義域値)
のデ−タベ−ス中の統計情報すなわち件数の分布グラフ
である。本実施例の特徴の一つは図形(グラフ)表現で
視覚化した表のメタファ即ち図形(グラフ)に対する範
囲の指定に応答して、指定された検索対象範囲に対応し
たSQL文を生成し、SQL文実行ウィンドウ106に
表示し、生成したSQL文のデータベース管理システム
による実行結果を検索結果ウィンドウ109に出力する
ことにある。To show the outline of this embodiment, FIG. 1 shows a window 101 on a display device for operating a database.
Indicates. The database operation window 101 is a screen for displaying information about the database to be operated. The table list 102 is a list of tables stored in the database system. The list may be displayed in a visual representation such as an icon. The column list 103 is a list of columns of a specific table, and the column list of the employee table is displayed in FIG. The column distribution information window 104 shows possible values (domain value) of the data of a specific column in the column list.
2 is a distribution graph of statistical information, that is, the number of cases in the database. One of the features of the present embodiment is that, in response to the designation of the range for the metaphor of the table visualized by the graphic (graph) expression, that is, the graphic (graph), the SQL sentence corresponding to the designated search target range is generated, This is to display in the SQL statement execution window 106 and output the execution result of the generated SQL statement by the database management system to the search result window 109.
【0015】図1における例を用いて、データベースの
ユーザの操作の流れを説明する。ユーザが社員の年令と
給与とに関する相関図を用い、その内容を把握したいと
する。ユーザは表一覧ウィンドウ102中の社員表を選
択する。その結果、社員表に対応する列一覧がデータベ
ース操作ウィンドウ101上に出力される。列一覧のな
かで検索対象としたい項目、この場合、年令を選択する
と列分布情報ウィンドウ104が表示される。この表示
には年令のデ−タベ−ス中の区間データ、例では10ー
19,...70ー79までの年令区間をY軸にその人
数(件数)がX軸上に表示され、社員表の年令列に関す
るデータの件数の分布状態がわかる。ユーザが表示され
たグラフ上で目的とする年令範囲を指定すると、その指
定範囲に従いデータベース操作システムがデータ操作文
を生成する。図1では20−29の区間が指定され、そ
の結果SQL文107が生成される。ユーザは必要に応
じて、生成したSQL文107を修正拡張することも可
能である。生成したSQL文はSQL文実行ウィンドウ
106の実行ボタン108の指定に応じて実行される。
その実行の結果は検索結果ウィンドウ109に表示され
る。The operation flow of the database user will be described with reference to the example shown in FIG. Suppose that the user wants to grasp the contents by using the correlation diagram regarding the age and salary of the employee. The user selects the employee table in the table list window 102. As a result, the column list corresponding to the employee table is output on the database operation window 101. When the item to be searched in the column list, in this case, the age is selected, the column distribution information window 104 is displayed. In this display, the section data in the age database is used, for example, 10-19 ,. . . The number of persons (number of cases) is displayed on the X axis on the Y axis of the age section from 70 to 79, and the distribution state of the number of data relating to the age column of the employee table can be understood. When the user specifies a target age range on the displayed graph, the database operation system generates a data operation statement according to the specified range. In FIG. 1, the section 20-29 is designated, and as a result, the SQL sentence 107 is generated. The user can also modify and extend the generated SQL statement 107 as needed. The generated SQL statement is executed according to the designation of the execute button 108 of the SQL statement execution window 106.
The result of the execution is displayed in the search result window 109.
【0016】図2はデータベースシステムの構成であ
る。表示装置201はデータベースシステムに対する各
種操作内容を表示する。データベース操作システム20
2は、表示装置201に表示し、画面指示装置(マウス
などのポインティングデバイス)203によって指示さ
れた操作要求を受け、その指示内容に対応した操作を行
い、必要に応じてデータベース管理システム204へデ
ータベース操作を要求する。データベース管理システム
204は、データベース操作システム202からの要求
を受け、データベースを操作するシステムである。デー
タベース管理システム204はデータベース中にデータ
を蓄え、ユーザからの検索,更新,追加操作要求により
データベースを操作する機能を持つ。また列の統計情報
を取得する機能等を持つ。辞書205はデータベースの
定義情報を格納するファイルと統計情報を格納するファ
イルとからなる。統計情報は特に辞書に含める必要はな
く、統計情報管理ファイルとして別に管理されても良
い。データベース206は複数のユーザ間で共用可能な
ファイルで、ユーザの定義したデータベース構造に従い
構築される。メモリ207はデータベース操作システム
202が利用する制御情報を配置するための領域であ
る。処理装置208は本システムを実行するための処理
装置である。FIG. 2 shows the configuration of the database system. The display device 201 displays various operation contents for the database system. Database operation system 20
2 displays on the display device 201, receives an operation request instructed by a screen instructing device (pointing device such as a mouse) 203, performs an operation corresponding to the instruction content, and sends a database to the database management system 204 as necessary. Request the operation. The database management system 204 is a system that receives a request from the database operation system 202 and operates a database. The database management system 204 has a function of storing data in the database and operating the database in response to a search, update, or addition operation request from the user. It also has the function of acquiring column statistical information. The dictionary 205 includes a file that stores definition information of the database and a file that stores statistical information. The statistical information does not need to be included in the dictionary, and may be managed separately as a statistical information management file. The database 206 is a file that can be shared by a plurality of users and is constructed according to the database structure defined by the user. The memory 207 is an area for arranging control information used by the database operation system 202. The processing device 208 is a processing device for executing the present system.
【0017】図3は辞書205の概要である。辞書もま
たデータベース化されており、ユーザが定義した各種デ
ータベース定義情報を格納している。SQL文では下記
の形式でデータベースの構造をユーザが定義する。 CREATE TABLE 社員 (名前 CHARCTER 32 年令 SMALLINT 年収 INTEGER 性別 CHARTER 1 ); 上記形式を実際に辞書化したのが、図3に示す表の定義
情報301と列の定義情報302と統計情報(列分布情
報)である。定義情報は列名303と列属性304とそ
の他の属性306等から構成される。統計情報(列分布
情報)305は各列の統計値すなわちデータの区間30
7とその区間の件数308である。区間307は下位区
間値−上位区間値の形式であり、この区間値はあらかじ
めユ−ザにより列毎に与えられた範囲を設定するか、後
述するユーティリティが自動的に決定する。件数308
はデータベースに対して定期的にユーティリティで取得
する。ゆえに列分布情報はユーティリティ取得時点での
正確なデータ分布状況を保持する。データベースが運用
されて一定時間が過ぎると、かならずしもデータベース
中の分布状況とは一致しなくなる。しかしオンライン中
にデ−タベ−スの更新内容を反映する機構があればその
時点での正確な分布状況を取得することが可能である。
たとえ反映がなくともデ−タベ−ス容量が十分に大きけ
れば、分布グラフの精度がある程度落ちるだけで影響は
少ない。本実施例は検索精度を上げることよりもデータ
の絞り込みのための初期状態を視覚化することが重要で
ある。デ−タベ−スの分布情報の取得処理を図20に示
す。この処理に関しては、前述のGabrielle
Wiorkowski及びDavid Kull共著”
DB2 Desigin&Development G
uide”,ADDISON−WESLEY社1990
年発行の第405頁から第409頁に詳細が示されてい
るので、概略を示す。分布情報取得対象のデータベース
を決定氏(ステップ2001)、指定されたデータベー
スを検索してその分布情報を取得し(ステップ200
2)、取得した分布情報を辞書へ出力する(ステップ2
003)。分布情報の取得で分布情報の区間値の設定
は、ユーザが指定するか本処理で自動的に決定する。FIG. 3 is an outline of the dictionary 205. The dictionary is also made into a database and stores various database definition information defined by the user. In the SQL statement, the user defines the structure of the database in the following format. CREATE TABLE employee (name CHARCTER 32 years old SMALLINT annual income INTERGER gender CHARTER 1); The above-mentioned format is actually made into a dictionary by definition information 301 of the table shown in FIG. 3, definition information 302 of columns and statistical information (column distribution information). ). The definition information includes a column name 303, a column attribute 304, and other attributes 306. The statistical information (column distribution information) 305 is the statistical value of each column, that is, the data section 30.
7 and the number of cases 308 in that section. The section 307 has a format of lower section value-upper section value, and the section value is set to a range given in advance for each column by the user or is automatically determined by a utility described later. Number of cases 308
Is periodically obtained with a utility for the database. Therefore, the column distribution information holds the accurate data distribution status at the time of utility acquisition. After a certain period of time has passed since the database was operated, it does not always match the distribution status in the database. However, if there is a mechanism that reflects the updated contents of the database online, it is possible to obtain the accurate distribution status at that time.
Even if there is no reflection, if the database capacity is sufficiently large, the accuracy of the distribution graph will be reduced to some extent and the influence will be small. In this embodiment, it is more important to visualize the initial state for data narrowing down than to improve the search accuracy. FIG. 20 shows the process of acquiring the distribution information of the database. Regarding this processing, the above-mentioned Gabrielle
"Wiorkowski and David Kull"
DB2 Design & Development G
"", ADDISON-WESLEY, 1990
The details are shown on pages 405 to 409 of the yearly publication, and therefore will be outlined. Determine the database for distribution information acquisition (step 2001), search the specified database and acquire the distribution information (step 200).
2) Output the acquired distribution information to the dictionary (step 2)
003). The setting of the section value of the distribution information when acquiring the distribution information is specified by the user or automatically determined by this processing.
【0018】以上で本実施例のデータベースシステムの
概要を説明した。次に表示画面とそれに対応する処理の
概要について説明する。The outline of the database system of this embodiment has been described above. Next, the outline of the display screen and the processing corresponding thereto will be described.
【0019】図6に本データベースシステムの稼働時に
利用する制御情報の関連を示す。これらの制御情報はメ
モリ207上に配置される。システム管理情報600は
システムの管理情報で表一覧情報へのポインタ602、
デ−タベ−ス検索結果表へのポインタ601を保持す
る。表一覧情報603は操作対象とする表に関する情報
を保持する管理表である。この管理表には表名604、
列情報表表示位置605、列情報へのポインタ606、
オプション情報へのポインタ607がある。列情報61
3はある表の列に関する情報を保持する管理表で、列名
614、列属性615、列分布情報へのポインタ616
で構成される。列分布情報621はある列のデータ分布
即ちその列の各定義域の範囲に対する表中の件数情報を
保持する。列分布情報621は区間値622、件数62
3、左上座標624、右上座標625、円上の区間開始
角度626、区間終了角度627で構成される。オプシ
ョン情報617は列分布情報表示の時のオプションを記
憶し、表示属性618、表示順序619、表示グラフの
形式620で構成され、その行の順番は列情報の各列名
に対応した順番である。デ−タベ−ス検索結果表608
は当システムで生成したSQL文の結果情報を保持し、
検索結果の表示等に利用する。FIG. 6 shows the relation of the control information used when the database system operates. These pieces of control information are arranged on the memory 207. The system management information 600 is system management information and is a pointer 602 to table list information.
A pointer 601 to the database search result table is held. The table list information 603 is a management table that holds information about tables to be operated. This management table has a table name 604,
A column information table display position 605, a pointer 606 to the column information,
There is a pointer 607 to the option information. Column information 61
Reference numeral 3 is a management table that holds information about the columns of a table, including column names 614, column attributes 615, and pointers 616 to column distribution information.
Composed of. The column distribution information 621 holds information on the number of items in the table for the data distribution of a column, that is, the range of each domain of the column. The column distribution information 621 is a section value 622, the number of cases 62
3, upper left coordinate 624, upper right coordinate 625, section start angle 626 on a circle, and section end angle 627. The option information 617 stores options at the time of displaying the column distribution information, and includes a display attribute 618, a display order 619, and a display graph format 620. The order of the rows is the order corresponding to each column name of the column information. .. Database search result table 608
Holds the result information of the SQL sentence generated by this system,
It is used for displaying search results.
【0020】図7は本データベースシステムの処理概要
である。以下その処理概要を図1並びに図4を用いて説
明する。データベース操作システム202が処理を開始
すると、初期化処理(ステップ701)は当システムが
必要とする環境の初期化処理を行いデータベース操作ウ
ィンドウ101を画面上に表示する。その後、データベ
ース管理システムに対して対話画面を利用しているユー
ザが権限を持つ表の定義情報301を辞書205から検
索し、その結果をメモリ上の表一覧情報603の形式で
保持する。上記処理のため、対話ユーザの名前の入力と
権限の判定が必要となるが、本実施例の本質ではないの
で省略する。表一覧情報603が作成された後、デ−タ
ベ−ス操作ウィンドウ101内に表一覧ウインドウ10
2およびその中の表一覧110を表示する。表一覧11
0は表名の一覧である。FIG. 7 is an outline of processing of this database system. The outline of the processing will be described below with reference to FIGS. 1 and 4. When the database operation system 202 starts processing, the initialization processing (step 701) initializes the environment required by this system and displays the database operation window 101 on the screen. After that, the definition information 301 of the table authorized by the user who uses the interactive screen for the database management system is searched from the dictionary 205, and the result is held in the form of table list information 603 on the memory. Because of the above processing, it is necessary to input the name of the interactive user and determine the authority, but this is not the essence of the present embodiment, and will be omitted. After the table list information 603 is created, the table list window 10 is displayed in the database operation window 101.
2 and the table list 110 therein are displayed. List of tables 11
0 is a list of table names.
【0021】上記初期処理を終えるとデータベース操作
システムは対話ユ−ザからの指示を待つ。対話ユ−ザか
らの指示はイベント情報と呼ばれる形式で画面指示装置
203からデ−タベ−ス操作システムに入力される。イ
ベント情報は指示装置の画面上のX,Y座標位置(指定
位置)および指示装置に付加されているボタンの押し下
げ等の状態情報である。状態情報は(1)画面指示装置
に付加されているボタンが押し下げられた。(2)同ボ
タンをホ−ルドしている。(3)同ボタンを押し上げ
た。(4)同ボタンをある一定時間内に2度続けて押し
た。等の情報である。前記は(1)はクリック(2)は
ドラッグ(4)はダブルクリックと呼ばれる状態であ
る。このイベント情報が入力されるのを待つのがイベン
ト情報入力702である。When the above initial processing is completed, the database operation system waits for an instruction from the dialogue user. The instruction from the dialogue user is input to the database operation system from the screen instruction device 203 in a format called event information. The event information is state information such as the X, Y coordinate position (designated position) on the screen of the pointing device and the pressing of a button added to the pointing device. As for the status information, (1) the button added to the screen indicating device is pressed. (2) Hold the same button. (3) The button was pushed up. (4) The same button was pressed twice within a certain period of time. It is information such as. The above is a state in which (1) is called click (2) is dragged (4) is called double click. Waiting for this event information to be input is the event information input 702.
【0022】イベントが発生すると該当イベントが画面
上のどの位置でどういう状態で発行されたか判断した
後、イベントが特定のウィンドウ上でかつ指示装置状態
がなんらかの操作を要求する場合、その操作要求に対応
する処理を行う。初期状態の場合、表一覧ウインドウ1
02のみが表示されている。この場合、ユーザは操作対
象となる表を選択する。例えば図4では社員表が選択さ
れた状態(ハッチング部分)である。この処理は図7の
表一覧ウィンドウ判定704で判定され表一覧処理70
5に制御が渡る。When an event occurs, after determining which position on the screen and in what state the event was issued, if the event is on a specific window and the indicating device state requires some operation, the operation request is handled. Perform processing to In the initial state, table list window 1
Only 02 is displayed. In this case, the user selects the table to be operated. For example, in FIG. 4, the employee table is selected (hatched portion). This processing is determined by the table list window determination 704 of FIG.
Control passes to 5.
【0023】表一覧ウィンドウ処理705の処理を図8
で詳細に説明する。イベントが発生し、イベント位置が
表一覧ウィンドウ上だと判断された後、その指定位置が
表一覧110か否かの判定処理801を行う。各表名は
表示画面上にその選択可能範囲を持ち、その範囲で画面
指示装置によるが操作が指示された場合、指示された表
名が選択されたと判断する。表一覧と判定され、状態情
報がダブルクリックであれば(802)、選択された表
名の表(指定表)の列一覧ウィンドウに対する表示処理
と判断し、指定表に対する列一覧ウィンドウ103をを
表示するために辞書中の列の定義情報302から指定表
に関する列の定義情報を検索し、その内容をメモリ上の
列情報613の各フィールドに転送する(805)。こ
の処理は実際には検索した辞書内の列の定義情報302
の列名303,列属性304がメモリ207上の列情報
613の列名614と列属性615に転送される。この
情報を元に列一覧ウィンドウ103を表示する処理80
6を行い、SELECT* FROM 表名称を含むS
QL文実行ウィンドウを表示(807)を行い、表一覧
処理を終了する。The process of the table list window process 705 is shown in FIG.
Will be described in detail. After an event occurs and it is determined that the event position is on the table list window, a determination process 801 is performed to determine whether the specified position is the table list 110. Each table name has a selectable range on the display screen, and when an operation is instructed by the screen instructing device within that range, it is determined that the instructed table name is selected. If it is determined to be a table list and the state information is double-clicked (802), it is determined that the process is the display process for the column list window of the table (designated table) with the selected table name, and the column list window 103 for the designated table is displayed. To do this, the column definition information 302 in the dictionary is searched for the column definition information related to the designated table, and the contents are transferred to each field of the column information 613 on the memory (805). This processing is actually the definition information 302 of the column in the searched dictionary.
The column name 303 and the column attribute 304 are transferred to the column name 614 and the column attribute 615 of the column information 613 on the memory 207. Process 80 for displaying the column list window 103 based on this information
6 and S including the SELECT * FROM table name
The QL sentence execution window is displayed (807), and the table list process is terminated.
【0024】列一覧ウィンドウ103が表示された後、
ユーザはその列の項目に対して分布情報によるデータ検
索を行う。After the column list window 103 is displayed,
The user searches for data in the column based on the distribution information.
【0025】図4では列一覧ウィンドウ103の中の年
令が選択されている(ハッチング部分)。この場合、イ
ベントが入力され、そん指定位置が列一覧ウィンドウ1
03上であるか否か判断し(706)、列一覧ウィンド
ウ103上ならば列一覧処理707が呼ばれる。In FIG. 4, the age is selected in the column list window 103 (hatched portion). In this case, the event is input and the designated position is the column list window 1
It is judged whether or not it is on the column list window 103 (706), and on the column list window 103, the column list processing 707 is called.
【0026】図9を用いて列一覧ウィンドウ処理707
の詳細を説明する。発生したイベントの指定位置から指
定されている列を決定し(901)、イベントが指示装
置によるダブルクリックであれば(902)、列分布情
報選択オプション処理905を呼び出す。その後、指定
列に関する列の列分布情報を辞書から検索し列分布情報
621を作成する(904)。これは指定表の指定列に
対応する辞書内の統計情報(辞書内の列分布情報)30
5を検索し、検索結果をメモリ上の列分布情報の対応す
るフィールドに転送する。実際には検索した統計情報3
05の区間307,件数308をメモリ上の列分布情報
621の区間値622,件数623に転送する。次に列
分布情報表示905を呼出し、列分布情報ウィンドウ1
04を表示する。Column list window processing 707 using FIG.
Will be described in detail. The designated column is determined from the designated position of the event that has occurred (901), and if the event is a double click by the pointing device (902), the column distribution information selection option processing 905 is called. After that, the column distribution information of the column related to the designated column is searched from the dictionary to create the column distribution information 621 (904). This is the statistical information (column distribution information in the dictionary) 30 in the dictionary corresponding to the specified column in the specified table.
5 is searched, and the search result is transferred to the corresponding field of the column distribution information on the memory. Actually searched statistical information 3
The section 307 of 05 and the number of cases 308 are transferred to the section value 622 and the number of cases 623 of the column distribution information 621 on the memory. Next, the column distribution information display 905 is called, and the column distribution information window 1
04 is displayed.
【0027】上記列分布情報選択オプション処理903
と列分布情報表示905を図10から図13を使って説
明する。Column distribution information selection option processing 903
The column distribution information display 905 will be described with reference to FIGS. 10 to 13.
【0028】列分布情報選択オプションは列分布情報ウ
ィンドウ表示をどのような形式で行うかを選択するため
のオプションである。このオプションのユ−ザ表示形式
は、図4の列分布情報選択オプションウィンドウ402
である。図4を使って図10を説明する。The column distribution information selection option is an option for selecting in what format the column distribution information window is displayed. The user display format of this option is the column distribution information selection option window 402 in FIG.
Is. FIG. 10 will be described with reference to FIG.
【0029】図10で列分布情報選択オプション処理9
03が開始されると、列分布情報選択オプションウィン
ドウ402が表示される。列分布情報選択オプションウ
ィンドウ402内には件数分布ボタン404、アクセス
頻度ボタン405、昇順ボタン406、降順ボタン40
7、棒グラフボタン408、円グラフボタン409、及
び表示ボタン403が表示されている。列分布情報選択
オプションウィンドウ表示後、イベント入力1002で
イベント入力を待つ。イベント入力の結果、その指定位
置が列分布情報選択オプションウィンドウ402上か否
か判断(1003)し、同オプションの表示上であれ
ば、指定位置が表示属性、表示順序、表示グラフの形式
を指定するものならば(1004−1011)、各オプ
ションに対応する設定をオプション情報617の対応す
る部分に設定(1014−1019)し、再度イベント
情報入力待ちとなる。もしイベント情報の指定位置が表
示指示ボタン403上であれば、列分布情報選択オプシ
ョンウィンドウを消去(1012)し、列情報選択オプ
ション処理を終了する。Column distribution information selection option processing 9 in FIG.
When 03 is started, the column distribution information selection option window 402 is displayed. In the column distribution information selection option window 402, a number distribution button 404, an access frequency button 405, an ascending order button 406, a descending order button 40.
7, a bar graph button 408, a pie graph button 409, and a display button 403 are displayed. After the column distribution information selection option window is displayed, an event input 1002 waits for an event input. As a result of the event input, it is judged whether or not the specified position is on the column distribution information selection option window 402 (1003), and if it is on the display of the option, the specified position specifies the display attribute, the display order, and the display graph format. If it does (1004-1011), the setting corresponding to each option is set in the corresponding part of the option information 617 (1014-1019), and the input of event information is awaited again. If the designated position of the event information is on the display instruction button 403, the column distribution information selection option window is erased (1012), and the column information selection option processing ends.
【0030】次に列分布情報表示905の概要を図1
1、図12、図13を用いて説明する。列分布情報表示
905は、先の列分布情報選択オプションで指定したオ
プションにしたがい列分布情報ウィンドウ104の表示
が行う。オプション情報617の表示順序619を調べ
(1102)、降順指定ならば列分布情報621の区間
値622を降順に並び替え(1103)、昇順指定なら
ば区間値622を昇順に並び替える(1104)。次に
同オプション情報617の表示グラフの形式620を判
定する(1105)。棒グラフ指定ならば棒グラフ表示
処理を行い(1106)、円グラフ指定ならば円グラフ
表示処理(1107)を呼び出す。Next, an outline of the column distribution information display 905 is shown in FIG.
This will be described with reference to FIGS. The column distribution information display 905 displays the column distribution information window 104 according to the option specified in the previous column distribution information selection option. The display order 619 of the option information 617 is checked (1102), if the descending order is designated, the section values 622 of the column distribution information 621 are sorted in the descending order (1103), and if the ascending order is designated, the section values 622 are sorted in the ascending order (1104). Next, the format 620 of the display graph of the option information 617 is determined (1105). If the bar graph is designated, the bar graph display process is performed (1106), and if the pie graph is designated, the pie graph display process (1107) is called.
【0031】図12を用いて棒グラフ表示の場合の、表
示処理概要を説明する。An outline of display processing in the case of bar graph display will be described with reference to FIG.
【0032】図12の棒グラフ表示1106において、
ウィンドウ内の棒グラフ表示領域、左上座標(XL,Y
L)と右下座標(XR,YR)を決める(1201)。
棒グラフの表示領域は通常画面上の一定の位置に表示す
るためその画面サイズから標準値を事前に決定して保持
する。次に列分布情報621の件数623中での最大値
を決定し(1202)、XZ(X軸の1件当たりの表示
長)とYZ(1区間の棒グラフの幅)を決定し、各区間
ごとの左上座標と右下座標決定処理1203を行う。本
処理で計算された各区間の左右座標は列分布情報621
の左上座標624と右下座標625に保持される。棒グ
ラフのX軸、Y軸とその軸の目盛(区間値と件数)をウ
ィンドウ上に表示し(1207)、左上座標624と右
上座標625に従い、ウィンドウ上に棒グラフの1つの
棒領域を描画する。描画時に各領域を色分けする事で各
棒領域の識別を容易にする。(1208から1211)
これらの結果、図1の列分布情報ウィンドウ104上に
棒グラフが表示装置に表示される。In the bar graph display 1106 of FIG. 12,
Bar graph display area in the window, upper left coordinates (XL, Y
L) and the lower right coordinates (XR, YR) are determined (1201).
Since the bar graph display area is normally displayed at a fixed position on the screen, a standard value is determined in advance from the screen size and held. Next, the maximum value of the column distribution information 621 in the number 623 of cases is determined (1202), XZ (display length per case of X axis) and YZ (width of bar graph of one section) are determined, and each section is determined. The upper left coordinate and lower right coordinate determination processing 1203 is performed. The left and right coordinates of each section calculated in this process are the column distribution information 621.
Are held in the upper left coordinate 624 and the lower right coordinate 625 of the. The X-axis and Y-axis of the bar graph and the scales of the axes (section value and number of cases) are displayed on the window (1207), and one bar area of the bar graph is drawn on the window according to the upper left coordinate 624 and the upper right coordinate 625. It is easy to identify each bar area by color-coding each area when drawing. (1208 to 1211)
As a result, a bar graph is displayed on the display device on the column distribution information window 104 of FIG.
【0033】次に図13を用いて円グラフ表示の場合の
表示処理概要を説明する。Next, the outline of display processing in the case of pie chart display will be described with reference to FIG.
【0034】図13の円グラフ表示1107において、
ウィンドウ内の円グラフ表示領域を決めるために、円描
画のために円の中心座標(XC,YC)と円の半径Rを
決定(1901)する。次に列分布情報621の件数6
22の各区間の総和を求める(1302)。上記で決定
した円グラフと開始線(座標(XC,YC+R)と
((XC,YC)を結ぶ直線)を描画する。各分布区間
値を円上で分割する直線を描画するために分割位置の座
標計算を行い、その区間線の円上の座標(xn,yn)
を決定する。その時点で、計算した区間角度を円上の区
間終了角度627として保持し、前区間の区間角度を円
上の区間開始角度626として保持する(1305)。In the pie chart display 1107 of FIG. 13,
In order to determine the pie chart display area in the window, the center coordinates (XC, YC) of the circle and the radius R of the circle are determined (1901) for drawing the circle. Next, the number of column distribution information 621 is 6
The total sum of the 22 sections is calculated (1302). Draw the pie chart and the start line (the straight line connecting the coordinates (XC, YC + R) and ((XC, YC)) determined above. To draw the straight line that divides each distribution interval value on the circle, Coordinates are calculated, and the coordinates of the section line on the circle (xn, yn)
To decide. At that time, the calculated section angle is held as the section end angle 627 on the circle, and the section angle of the previous section is held as the section start angle 626 on the circle (1305).
【0035】次に区間線の円上の座標と円の中心座標を
結ぶ直線(区間線)を描画する。ここで区間線で区切ら
れた円弧内の領域を色分けする事で各区間の識別性をあ
げる(1306)。上記1305と1306の各処理を
列分布の区間数文繰り返す(1304,1307)。上
記の結果、列分布情報ウィンドウ104上に円グラフ形
式で列分布グラフが描画される。Next, a straight line (section line) connecting the circle coordinates of the section line and the center coordinates of the circle is drawn. Here, the distinctiveness of each section is improved by color-coding the area within the arc delimited by the section line (1306). Each processing of the above 1305 and 1306 is repeated for the section distribution sentence of the column distribution (1304, 1307). As a result, the column distribution graph is drawn in the pie chart format on the column distribution information window 104.
【0036】次に図14を使用して列分布情報ウィンド
ウを利用したデータベース検索を説明する。図7に示す
ように表示された列分布情報に対するイベントが発生す
ると、その指定位置が列分布情報ウィンドウ内か否かの
判定処理708により列分布情報ウィンドウ処理709
が選択される。Next, referring to FIG. 14, the database search using the column distribution information window will be described. When an event for the column distribution information displayed as shown in FIG. 7 occurs, the column distribution information window process 709 is performed by the determination process 708 of whether the specified position is within the column distribution information window.
Is selected.
【0037】図14は表示された列分布情報ウィンドウ
に対する処理である。ユーザは表示された列分布情報に
対する検索範囲指定処理を行う。イベントの指示位置が
演算子メニュ−位置か否か判断する処理1402を行
い、そうでなければ検索範囲指定処理1403を行う。
例えば図5では20−29の年令を選択し検索する指定
を行っている。FIG. 14 shows the processing for the displayed column distribution information window. The user performs a search range designation process for the displayed column distribution information. A process 1402 is performed to determine whether the designated position of the event is the operator menu position, and if not, a search range designation process 1403 is performed.
For example, in FIG. 5, the age of 20-29 is selected and the retrieval is designated.
【0038】検索範囲指定処理の詳細について図15を
用い以下に示す。Details of the search range designation processing will be described below with reference to FIG.
【0039】検索範囲指定処理1403が呼びだされる
と、処理対象列のオプション情報617の表示グラフの
形式620が棒グラフ指定か否か判断し(1501)、
棒グラフ指定であれば、棒グラフ範囲判定処理1502
を呼び出す。表示グラフの形式が円グラフ指定の場合
(1503)、円グラフ範囲判定処理1504を呼び出
す。When the search range designation processing 1403 is called, it is judged whether the display graph format 620 of the option information 617 of the processing target column is a bar graph designation (1501),
If a bar graph is designated, bar graph range determination processing 1502
Call. When the format of the display graph is the pie chart designation (1503), the pie chart range determination processing 1504 is called.
【0040】棒グラフ範囲判定処理を図16を用いて説
明する。イベントの指定位置情報が左上座標623、右
下座標624の各区間範囲内のいずれかにあるか否か判
定する(1601−1605)。その結果、ある区間の
範囲だと判定されたならば、生成SQL文107に 列
名>=下位区間値 AND 列名<=上位区間値 とい
う条件式を追加する(1606)。The bar graph range determination processing will be described with reference to FIG. It is determined whether or not the designated position information of the event is in any of the section ranges of the upper left coordinate 623 and the lower right coordinate 624 (1601-1605). As a result, if it is determined that the range is within a certain section, a conditional expression that column name> = lower section value AND column name <= upper section value is added to the generated SQL statement 107 (1606).
【0041】次に表示グラフの形式が円グラフの場合の
円グラフ範囲判定処理1504を図17を用いて説明す
る。イベントの指定位置情報が円グラフ上の円の範囲内
であるか否か判定し(1702)、円グラフの円内であ
れば、その指定位置がどの区間角度に入っているか、円
グラフ表示処理1107で計算し列分布情報621に保
持した円上の区間開始角度626と同区間終了角度62
7から判定する(1703ー1706)。上記区間範囲
の判定結果、ある区間の範囲だと判定されたならば、生
成SQL文107に 列名>=下位区間値 AND 列
名<=上位区間値という条件式を追加する(170
7)。Next, the pie chart range determination processing 1504 when the format of the display graph is a pie chart will be described with reference to FIG. It is determined whether or not the designated position information of the event is within the range of the circle on the pie chart (1702), and if it is within the circle of the pie chart, the pie chart display process indicating which section angle the designated position is within. The section start angle 626 and the section end angle 62 on the circle calculated in 1107 and held in the column distribution information 621
It is judged from No. 7 (1703-1706). If it is determined as a range of a certain section as a result of the section range determination, a conditional expression that column name> = lower section value AND column name <= upper section value is added to the generated SQL statement 107 (170).
7).
【0042】次に図14の列分布情報ウィンドウに対す
る処理で演算子メニューが選択された場合を説明する。
同メニューが選択されると演算子メニュー処理1404
が実行される。演算子メニュー処理はSQL文実行ウィ
ンドウ106の生成SQL文107に対して、他の列の
条件式を追加する場合に呼び出す。図5における演算子
メニュー502はSQL文実行ウィンドウ106上のS
QL文上で次に指定可能な演算子が表示されている。図
5の実施例の場合、AND,ORの論理演算子であるが
括弧や+−/*の演算子も指定可能である。ユーザがメ
ニュー上の任意の演算子を指定すると列名メニュー50
3が表示され、そのいづれかを選択するとその列に関す
る列分布情報ウィンドウが表示されて上記と同じ操作を
行うことで条件文を追加できる。Next, a case where the operator menu is selected in the processing for the column distribution information window of FIG. 14 will be described.
When this menu is selected, operator menu processing 1404
Is executed. The operator menu process is called when a conditional expression of another column is added to the generated SQL statement 107 of the SQL statement execution window 106. The operator menu 502 in FIG. 5 is S on the SQL statement execution window 106.
The operator that can be specified next is displayed on the QL sentence. In the case of the embodiment of FIG. 5, although logical operators of AND and OR, parentheses and + // * operators can be specified. If the user specifies any operator on the menu, the column name menu 50
3 is displayed, and when any one of them is selected, the column distribution information window for that column is displayed, and the conditional operation can be added by performing the same operation as described above.
【0043】同処理の詳細を図18の演算子メニュー処
理で説明する。図14の列分布情報ウィンドウ処理にお
いて演算子メニュー処理1404は列分布情報ウィンド
ウにたいするイベントの指定位置が演算子メニューであ
ると判断された時(1402)に呼び出される。その指
定位置が図5に示すANDボタン507、ORボタン5
08であればその演算子をSQL文に追加する。図12
ではAND、ORの追加についての処理概要を1801
ー1804に示す。同テキスト追加処理を行った後、現
在処理中の列以外の列を列名メニュー503として表示
し(1806)、イベントの入力を待つ(1810)。
イベントが発生し指定位置が列メニュ−でなければ、次
のイベント入力を再度待つ(1811)。もし列メニュ
−位置と判断されれば指定位置の列名称を決定し(18
12)その列に対応する列分布情報ウィンドウが表示さ
れているか否か判断し(1807)、その列に対応する
ウィンドウがあればそのウィンドウの最前列表示処理1
808を行い、もしその列に対する列分布情報ウィンド
ウが表示されていない場合、その列に関する列分布情報
ウィンドウを表示する処理を行う。同処理は列分布情報
選択オプション処理903を行い、指定列に関する列の
統計情報を辞書から検索し、列分布情報を作成後(18
10)、列分布情報表示905を行う。The details of this processing will be described with reference to the operator menu processing shown in FIG. In the column distribution information window process of FIG. 14, the operator menu process 1404 is called when it is determined that the designated position of the event on the column distribution information window is the operator menu (1402). The designated position is the AND button 507 and OR button 5 shown in FIG.
If it is 08, the operator is added to the SQL statement. 12
1801 for the processing outline for adding AND and OR
-1804. After the text addition process is performed, columns other than the column currently being processed are displayed as the column name menu 503 (1806) and the input of an event is awaited (1810).
If an event occurs and the designated position is not the column menu, the next event input is waited again (1811). If it is determined to be the column menu position, the column name of the designated position is determined (18
12) It is judged whether or not the column distribution information window corresponding to the column is displayed (1807), and if there is a window corresponding to the column, the front row display process 1 of the window is performed.
808 is performed, and if the column distribution information window for the column is not displayed, the column distribution information window for the column is displayed. This processing performs column distribution information selection option processing 903, searches the dictionary for column statistical information related to the specified column, and creates column distribution information (18
10) The column distribution information display 905 is performed.
【0044】以上の処理を繰り返し生成されたSQL文
を実行して実際にデータベースを検索する処理を図19
のSQL文実行処理で説明する。必要とする列の分布情
報から生成されたSQL文の実行はSQL文実行ウィン
ドウの実行ボタンを表示画面指示装置で指示することで
実行される。イベントの指定位置が実行のボタン位置で
あれば(1906)SQL文を実行する。実行はSQL
文に対するカーソルをオープンし(1907)データの
終了までデータベースを検索し、検索結果をデータベー
ス検索結果表に保持する(1908、1909)。同検
索結果を検索結果ウィンドウ109の形式で表示する
(1910)。FIG. 19 shows a process of actually retrieving the database by executing the SQL statement generated by repeating the above process.
The SQL statement execution process will be described. The execution of the SQL statement generated from the distribution information of the required columns is executed by instructing the execution button of the SQL statement execution window with the display screen instruction device. If the specified position of the event is the execution button position (1906), the SQL statement is executed. Execution is SQL
The cursor for the sentence is opened (1907), the database is searched until the end of the data, and the search result is held in the database search result table (1908, 1909). The same search result is displayed in the format of the search result window 109 (1910).
【0045】[0045]
【発明の効果】従来は検索を行うためにデータベースの
ある列に対する定義域を知っておく必要があったが、本
発明によれば、ユーザはデータベースの定義域に対する
知識がなくとも、データベース検索が可能となる。また
図形(グラフ等)の表示画面に対する検索範囲の指定に
応じて、データベースを検索するためのデータ操作言語
を自動生成するので、ユーザはデータ操作言語の知識も
基本的に必要とせず、データベースに対する操作性を向
上させることができる。In the past, in order to perform a search, it was necessary to know the domain for a certain column of the database. However, according to the present invention, the user can search the database without knowledge of the domain of the database. It will be possible. In addition, since the data operation language for searching the database is automatically generated according to the designation of the search range on the display screen of figures (graphs, etc.), the user basically does not need knowledge of the data operation language. The operability can be improved.
【図1】デ−タベ−ス操作のためのウインドウを表示し
た表示装置画面例を示す。FIG. 1 shows an example of a screen of a display device displaying a window for operating a database.
【図2】デ−タベ−スシステムの全体構成を示す。FIG. 2 shows the overall configuration of a database system.
【図3】辞書の構成を示す。FIG. 3 shows the structure of a dictionary.
【図4】データベース列の選択と列分布情報選択オプシ
ョンの表示例を示す。FIG. 4 shows a display example of database column selection and column distribution information selection options.
【図5】定義域値のグラフによる件数表示例を示す。FIG. 5 shows an example of displaying the number of cases by a graph of domain value.
【図6】処理対象テーブルの関連を示す。FIG. 6 shows a relation of processing target tables.
【図7】データベース操作システムの処理フローチャー
トを示す。FIG. 7 shows a processing flowchart of the database operation system.
【図8】表一覧処理フローチャートを示す。FIG. 8 shows a table list processing flowchart.
【図9】列一覧処理フローチャートを示す。FIG. 9 shows a column list processing flowchart.
【図10】列分布情報選択オプション処理フローチャー
トを示す。FIG. 10 shows a column distribution information selection option processing flowchart.
【図11】列分布情報表示処理フローチャートを示す。FIG. 11 shows a flowchart of column distribution information display processing.
【図12】棒グラフ表示処理フローチャートを示す。FIG. 12 shows a flowchart of a bar graph display process.
【図13】円グラフ表示処理フローチャートを示す。FIG. 13 shows a pie chart display processing flowchart.
【図14】列分布処理フローチャートを示す。FIG. 14 shows a column distribution processing flowchart.
【図15】検索範囲指定処理フローチャートを示す。FIG. 15 shows a flowchart of a search range designation process.
【図16】棒グラフ範囲判定処理フローチャートを示
す。FIG. 16 shows a flowchart of a bar graph range determination process.
【図17】円グラフ範囲判定処理フローチャートを示
す。FIG. 17 shows a pie chart range determination processing flowchart.
【図18】演算子メニュー処理フローチャートを示す。FIG. 18 shows an operator menu processing flowchart.
【図19】生成SQL文実行処理フローチャートを示
す。FIG. 19 shows a flowchart of a generated SQL statement execution process.
【図20】統計情報取得処理フローチャートを示す。FIG. 20 shows a flowchart of a statistical information acquisition process.
101はデータベース検索システムのデータベースビジ
ュアル検索ウィンドウ。102は検索対象となる表の一
覧を表示するウィンドウ。103は検索対象となる表の
列の一覧を表示するウィンドウ。104はある列に対す
るデータの分布情報を表示するウィンドウ。106は自
動生成したSQL文を表示し、実際に実行を指示するウ
ィンドウ。107は自動生成されたSQL文。108は
生成されたSQL文を実行する指示ボタン。109は検
索結果101 is a database visual search window of the database search system. A window 102 displays a list of tables to be searched. Reference numeral 103 is a window that displays a list of columns of the table to be searched. A window 104 displays data distribution information for a certain column. Reference numeral 106 is a window that displays the automatically generated SQL sentence and instruct execution. 107 is an automatically generated SQL sentence. Reference numeral 108 is an instruction button for executing the generated SQL sentence. 109 is the search result
Claims (4)
目を表示装置に表示し、前記表示した項目の中で検索対
象とすべき項目の選択入力に応じて、前記選択された項
目に関する統計情報に基づいて、前記データベースに格
納されている該項目のデータの分布状態を前記表示装置
に図形表示し、前記表示した図形上における検索範囲の
指定に応答して、前記データベースへのアクセスのため
の命令を生成し、該命令を実行することにより、前記検
索範囲の指定に応じたデータを検索するデータベース検
索方法。1. An item of data stored in a database is displayed on a display device, and statistical information on the selected item is displayed in response to selection input of an item to be searched among the displayed items. On the basis of the above, the distribution state of the data of the item stored in the database is graphically displayed on the display device, and in response to the designation of the search range on the displayed graphic, an instruction for accessing the database. Is generated and the command is executed to search for data according to the designation of the search range.
て、前記分布状態は、前記選択された項目のデータのと
りうる値の範囲を分割し、該分割範囲毎の統計情報に基
づいて前記表示装置に図形表示されるデータベース検索
方法。2. The database search method according to claim 1, wherein the distribution state divides a range of values that can be taken by the data of the selected item, and displays on the display device based on statistical information for each of the divided ranges. Database search method displayed graphically.
て、前記分布状態の図形表示は、棒グラフ及び円グラフ
のいずれかのグラフ表示であるデータベース検索方法。3. The database search method according to claim 1, wherein the graphic display of the distribution state is a bar graph or a pie chart.
目から検索対象とすべき項目を選択入力するための入力
装置と、前記選択入力のために前記データベースに格納
されているデータの項目を表示し、前記選択された項目
に関する統計情報に基づいて、前記データベースに格納
されている該項目のデータの分布状態を図形表示するた
めの表示装置と、前記表示した図形上における検索範囲
の指定に応答して、前記データベースへのアクセスのた
めの命令を生成する手段と、該命令を実行することによ
り、前記検索範囲の指定に応じたデータを検索する手段
とから成るデータベースシステム。4. An input device for selectively inputting an item to be searched from data items stored in a database, and an item of data stored in the database for the selection input. A display device for graphically displaying the distribution state of the data of the item stored in the database based on the statistical information on the selected item, and responding to the designation of the search range on the displayed graphic. And a means for generating an instruction for accessing the database, and a means for executing the instruction to retrieve data according to the designation of the retrieval range.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4095146A JPH05289920A (en) | 1992-04-15 | 1992-04-15 | Database search method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4095146A JPH05289920A (en) | 1992-04-15 | 1992-04-15 | Database search method and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05289920A true JPH05289920A (en) | 1993-11-05 |
Family
ID=14129664
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4095146A Pending JPH05289920A (en) | 1992-04-15 | 1992-04-15 | Database search method and system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05289920A (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06282578A (en) * | 1993-03-26 | 1994-10-07 | Fujitsu Ltd | Information extraction method |
| JPH06348762A (en) * | 1993-06-04 | 1994-12-22 | Internatl Business Mach Corp <Ibm> | Equipment and method for search of database |
| JPH0785103A (en) * | 1993-09-20 | 1995-03-31 | Fujitsu Ltd | Document information retrieval device |
| JPH07129597A (en) * | 1993-10-29 | 1995-05-19 | Fujitsu Ltd | Database retrieving device |
| JPH07319905A (en) * | 1994-05-25 | 1995-12-08 | Fujitsu Ltd | Information retrieval device |
| JPH0844759A (en) * | 1994-07-28 | 1996-02-16 | Ibm Japan Ltd | Information retrieval system and method |
| JPH08272660A (en) * | 1995-03-29 | 1996-10-18 | Nec Corp | Data base inquiry statement generator |
| JPH11316771A (en) * | 1999-03-26 | 1999-11-16 | Nec Corp | Database retrieval system |
| JP2013097576A (en) * | 2011-10-31 | 2013-05-20 | Fujitsu Ltd | Generation method, search support method, search support program and system |
-
1992
- 1992-04-15 JP JP4095146A patent/JPH05289920A/en active Pending
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06282578A (en) * | 1993-03-26 | 1994-10-07 | Fujitsu Ltd | Information extraction method |
| JPH06348762A (en) * | 1993-06-04 | 1994-12-22 | Internatl Business Mach Corp <Ibm> | Equipment and method for search of database |
| JPH0785103A (en) * | 1993-09-20 | 1995-03-31 | Fujitsu Ltd | Document information retrieval device |
| JPH07129597A (en) * | 1993-10-29 | 1995-05-19 | Fujitsu Ltd | Database retrieving device |
| JPH07319905A (en) * | 1994-05-25 | 1995-12-08 | Fujitsu Ltd | Information retrieval device |
| JPH0844759A (en) * | 1994-07-28 | 1996-02-16 | Ibm Japan Ltd | Information retrieval system and method |
| JPH08272660A (en) * | 1995-03-29 | 1996-10-18 | Nec Corp | Data base inquiry statement generator |
| JPH11316771A (en) * | 1999-03-26 | 1999-11-16 | Nec Corp | Database retrieval system |
| JP2013097576A (en) * | 2011-10-31 | 2013-05-20 | Fujitsu Ltd | Generation method, search support method, search support program and system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6216139B1 (en) | Integrated dialog box for rapidly altering presentation of parametric text data objects on a computer display | |
| USRE43753E1 (en) | Graphic user interface for database system | |
| JP2732552B2 (en) | How to generate and display search queries and search results | |
| US4992972A (en) | Flexible context searchable on-line information system with help files and modules for on-line computer system documentation | |
| CA1315000C (en) | System for graphically representing and manipulating data stored in databases | |
| US5603025A (en) | Methods for hypertext reporting in a relational database management system | |
| US6016488A (en) | Method and system for constructing queries | |
| CA2266457C (en) | System and method for search and retrieval of digital information | |
| US5426781A (en) | Computerized report-based interactive database query interface | |
| KR100214911B1 (en) | Searching for Large Data Using Pointer | |
| JP2777698B2 (en) | Information retrieval system and method | |
| US20020080187A1 (en) | Enhanced method and system for category selection | |
| US5809495A (en) | Method for obtaining information regarding the current activity of a database management system from a viritual table in a memory of the database management system | |
| US5280275A (en) | Graphical interface control buttons with scalar values | |
| US20050050470A1 (en) | Interactive tooltip | |
| WO1999066453A1 (en) | Computer-based system and method for data processing | |
| GB2222353A (en) | Improvements in or relating to user interfaces | |
| EP0697667A1 (en) | Method and apparatus for displaying structures and relationships of a relational database | |
| JPH05289920A (en) | Database search method and system | |
| JPH0612552B2 (en) | Electronic document retrieval device | |
| EP0558223A1 (en) | Window management system in a computer workstation | |
| US20010013036A1 (en) | Interaction with query data | |
| JP3016691B2 (en) | Data search condition setting method | |
| JP2001134586A (en) | Database search processing method and system by computer | |
| JPH0524551B2 (en) |