JPH0194429A - Hierarchical retrieving system in relational-type data base - Google Patents
Hierarchical retrieving system in relational-type data baseInfo
- Publication number
- JPH0194429A JPH0194429A JP62252777A JP25277787A JPH0194429A JP H0194429 A JPH0194429 A JP H0194429A JP 62252777 A JP62252777 A JP 62252777A JP 25277787 A JP25277787 A JP 25277787A JP H0194429 A JPH0194429 A JP H0194429A
- Authority
- JP
- Japan
- Prior art keywords
- hierarchical
- database
- logical
- data
- hierarchy
- 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
- 230000014509 gene expression Effects 0.000 claims description 10
- 238000000034 method Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報検索方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to an information retrieval method.
(従来の技術)
従来、リレーショナル型データベースにおいて、デイス
プレィ上で会話的に検索を行なう場合、デイスプレィ上
に表を表示し、その表内の各項目に対して条件式を直接
指定することによって検索を行なうようになっていた。(Prior Art) Conventionally, when searching interactively on a display in a relational database, a table is displayed on the display and the search is performed by directly specifying a conditional expression for each item in the table. I was supposed to do it.
上述した従来の検索方式は、条件式を直接指定する方式
となっているため、
・条件式の記述法を知らないと検索が行なえない・どの
項目にどういうデータが登録されているか正確に知らな
いと、どの項目に条件式を指定すればいいのかわからな
い。In the conventional search method described above, the conditional expression is specified directly, so - You cannot perform a search unless you know how to write the conditional expression - You do not know exactly what kind of data is registered in which item I don't know which item to specify the conditional expression for.
という欠点がある。There is a drawback.
(問題点を解決するための手段)
本発明のリレーショナル型データベースにおける階層的
検索方式は、各々が識別コードおよび複数の論理項目を
有するリレーショナル型データベースの識別コードおよ
び論理項目間の階層関係を定義した階層テーブルが格納
されている階層ファイルと、データベースの論理構造を
示すデータベース構造テーブルが識別コードとともに格
納されているデータベース構造ファイルと、データベー
ス構造ファイルから指定されたデータベースに該当する
データベース構造テーブルを読出し、その識別コードと
対応する階層テーブルを階層ファイルから読出す階層テ
ーブル読み込み部と、読出された階層テーブルから論理
項目間の階層関係を解析し、その解析結果に基づいて、
階層順に一輪埋項目ずつ指定可能な条件を表示し、選択
させ、選択された条件を条件式に組み立て直す階層テー
ブル解析部と、階層テーブル解析部で組み立てられた条
件式によりデータベースを検索する検索部を有している
。(Means for Solving the Problems) The hierarchical search method in a relational database of the present invention defines a hierarchical relationship between identification codes and logical items in a relational database, each of which has an identification code and a plurality of logical items. reads a hierarchical file in which hierarchical tables are stored, a database structure file in which a database structure table indicating the logical structure of the database is stored together with an identification code, and a database structure table corresponding to the specified database from the database structure file; A hierarchy table reading unit reads the hierarchy table corresponding to the identification code from the hierarchy file, analyzes the hierarchy relationship between logical items from the read hierarchy table, and based on the analysis result,
A hierarchical table analysis section that displays conditions that can be specified one by one in hierarchical order, allows selection, and reassembles the selected conditions into conditional expressions, and a search section that searches the database using the conditional expressions assembled by the hierarchical table analysis section. have.
したがフて、リレーショナル型データベースを階層選択
的に条件を選択するだけで容易に検索することができる
。Therefore, a relational database can be easily searched by simply selecting conditions in a hierarchical manner.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明のリレーショナル型データベースにおけ
る階層的検索方式の一実施例の構成を示す概略図、第2
図はデータベースの階層構造の例を示す図である。FIG. 1 is a schematic diagram showing the configuration of an embodiment of a hierarchical search method in a relational database according to the present invention;
The figure is a diagram showing an example of a hierarchical structure of a database.
データベース10内の論理項目間の階層関係(従属関係
)を示す階層テーブル1と、データベース10の論理構
造を示すデータベース構造テーブル3は、外部媒体2,
3上の階層ファイル、データベース構造ファイル内にそ
れぞれ格納されており、それぞれ対応を示す識別コード
を有している。一方、人力部9より指定されたデータベ
ースに対応する階層テーブル1を読み取る階層テーブル
読み取り部6と、読み込まれた階層テーブルを解析し、
検索条件式を作成する階層テーブル解析部7は、階層検
索部5内に用意され、実際にデータベース10を検索す
る検索部8と結合される。A hierarchy table 1 showing hierarchical relationships (dependencies) between logical items in the database 10 and a database structure table 3 showing the logical structure of the database 10 are stored on the external medium 2,
They are stored in the hierarchical file above No. 3 and the database structure file, respectively, and each has an identification code indicating the correspondence. On the other hand, a hierarchical table reading unit 6 reads the hierarchical table 1 corresponding to the database specified by the human resources department 9, and analyzes the read hierarchical table,
A hierarchical table analysis section 7 that creates search condition expressions is provided within the hierarchical search section 5 and is combined with a search section 8 that actually searches the database 10.
今、人力部9よりデータベースが指定されると、階層テ
ーブル読み込み部6は、データベース構造ファイル4か
ら該当するデータベース構造テーブル3を読出し、その
識別コードと対応する階層テーブル1を階層ファイル2
より読出す。読出された階層テーブル1は、階層テーブ
ル読み込み部6より階層テーブル解析部7に渡され、論
理項目間の階層関係(従属関係)が解析される。次に、
その解析結果に基づき階層テーブル解析部7から入力部
9に対して、階層順に一輪埋項目づつ指定可能な条件を
表示、選択させ、選択された条件を条件式に組み立て直
し、検索部8に順次送ることにより、データベース10
を階層的に検索することができる。Now, when a database is specified by the human resources department 9, the hierarchical table reading section 6 reads the corresponding database structure table 3 from the database structure file 4, and transfers the identification code and corresponding hierarchical table 1 to the hierarchical file 2.
Read more. The read hierarchical table 1 is passed from the hierarchical table reading section 6 to the hierarchical table analyzing section 7, where hierarchical relationships (dependent relationships) between logical items are analyzed. next,
Based on the analysis results, the hierarchical table analysis section 7 causes the input section 9 to display and select conditions that can be specified one by one in hierarchical order, reassembles the selected conditions into a conditional expression, and sends the selected conditions to the search section 8 one after another. By sending database 10
can be searched hierarchically.
例えば、表1で示すような二次元リレーショナル型デー
タベースに対して、第2図で示すように論理項目1,2
,3.−、nの順で階層構造を定義したとすると、初め
に第ルベルの論理項目1の条件「データ11J、rデー
タ12」、・・・が選択条件として表示される。ここで
、「データ11」が選択されたとすると、その下に定義
されている第2レベルの論理項目2の条件「データ21
」、rデータ22」が次の選択条件として表示される。For example, for a two-dimensional relational database as shown in Table 1, logical items 1 and 2 as shown in Figure 2.
,3. If the hierarchical structure is defined in the order of -, n, then the conditions of logical item 1 of the th level, "data 11J, r data 12", . . . are displayed as selection conditions. Here, if "Data 11" is selected, the condition of the second level logical item 2 defined below "Data 21" is selected.
", r data 22" is displayed as the next selection condition.
これを第nレベルまで繰り返すことにより、二次元のリ
レーショナル型データベースを階層的に検索することが
できる。また、第n階層まで選択せずに、途中で階層の
選択をやめてもよく、この時は複数性のデータが検索さ
れる。By repeating this process up to the n-th level, a two-dimensional relational database can be searched hierarchically. Furthermore, the selection of the hierarchy may be stopped midway without selecting up to the n-th hierarchy, and in this case, plural data is searched.
\−
表1
(発明の効果〕
以上説明したように本発明は、階層テーブルを設け、こ
の階層テーブルから論理項目間の階層関係を解析し、そ
の解析結果にもとづいて順次論理項目ごとにデータベー
スを検索していくことにより、
■二次元のリレーショナル型データベースを階層選択的
に条件を選択するだけで容易に検索することができる。\- Table 1 (Effects of the Invention) As explained above, the present invention provides a hierarchical table, analyzes the hierarchical relationship between logical items from this hierarchical table, and sequentially creates a database for each logical item based on the analysis results. By searching, you can easily search a two-dimensional relational database simply by selectively selecting conditions in the hierarchy.
■一つの論理項目毎に自動的に条件が示されるので、条
件を指定する論理項目に迷うことがなくなる。■Since conditions are automatically shown for each logical item, there is no need to get confused about which logical item to specify a condition.
■既存のリレーショナル型データベースを変更すること
なしに階層構造を付加することができる。■A hierarchical structure can be added to an existing relational database without changing it.
という効果がある。There is an effect.
第1図は本発明のリレーショナル型データベースにおけ
る階層的検索方式の一実施例の構成を示す概略図、第2
図は本発明を説明するための具体例を示す階層構造図で
ある。
1・・・・・・階層テーブル、 2−−−−−一階層
ファイル、3−−−−−−データベース構造テーブル、
4−−−−−−データベース構造ファイル、5−−−−
−・階層検索部、
6・・・・・・階層テーブル読み込み部、7−−−−−
一階層テーブル解析部、
8−−−−−−検索部、 9−−−−−−人力
部、lO・・・・・・データベース。FIG. 1 is a schematic diagram showing the configuration of an embodiment of a hierarchical search method in a relational database according to the present invention;
The figure is a hierarchical structure diagram showing a specific example for explaining the present invention. 1...Hierarchical table, 2---One-level file, 3---Database structure table,
4------Database structure file, 5------
-・Hierarchy search unit, 6...Hierarchy table reading unit, 7------
1-layer table analysis section, 8-------- search section, 9----- human resources department, lO... database.
Claims (1)
ショナル型データベースの識別コードおよび論理項目間
の階層関係を定義した階層テーブルが格納されている階
層ファイルと、 データベースの論理構造を示すデータベース構造テーブ
ルが識別コードとともに格納されているデータベース構
造ファイルと、 データベース構造ファイルから指定されたデータベース
に該当するデータベース構造テーブルを読出し、その識
別コードと対応する階層テーブルを階層ファイルから読
出す階層テーブル読み込み部と、 読出された階層テーブルから論理項目間の階層関係を解
析し、その解析結果に基づいて、階層順に一論理項目ず
つ指定可能な条件を表示し、選択させ、選択された条件
を条件式に組み立て直す階層テーブル解析部と、 階層テーブル解析部で組み立てられた条件式によりデー
タベースを検索する検索部とを有するリレーショナル型
データベースにおける階層的検索方式。[Claims] A hierarchical file storing a hierarchical table that defines the hierarchical relationship between the identification code and logical items of a relational database, each of which has an identification code and a plurality of logical items, and a logical structure of the database. A database structure file in which a database structure table is stored along with an identification code, and a hierarchical table read that reads the database structure table corresponding to the specified database from the database structure file, and reads the hierarchy table corresponding to the identification code from the hierarchy file. Analyzes the hierarchical relationship between logical items from the read hierarchical table, and based on the analysis results, displays conditions that can be specified one logical item at a time in hierarchical order, allows selection, and converts the selected condition into a conditional expression. A hierarchical search method in a relational database, comprising: a hierarchical table analysis section that reassembles the hierarchical table analysis section; and a search section that searches the database using conditional expressions assembled by the hierarchical table analysis section.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62252777A JPH0194429A (en) | 1987-10-06 | 1987-10-06 | Hierarchical retrieving system in relational-type data base |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62252777A JPH0194429A (en) | 1987-10-06 | 1987-10-06 | Hierarchical retrieving system in relational-type data base |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0194429A true JPH0194429A (en) | 1989-04-13 |
Family
ID=17242136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62252777A Pending JPH0194429A (en) | 1987-10-06 | 1987-10-06 | Hierarchical retrieving system in relational-type data base |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0194429A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0690287A (en) * | 1992-06-25 | 1994-03-29 | Internatl Business Mach Corp <Ibm> | Method and system for finish of gradual retrieval of database by means of telephone |
JPH06203078A (en) * | 1992-12-28 | 1994-07-22 | Sony Corp | Information retrieval method and device therefor |
JPH09274620A (en) * | 1996-04-05 | 1997-10-21 | Casio Comput Co Ltd | Data output device |
JPH1091643A (en) * | 1996-09-19 | 1998-04-10 | Nec Software Ltd | Method and device for generating and retrieving sorted master file utilizing name |
JP2005505042A (en) * | 2001-09-28 | 2005-02-17 | オラクル・インターナショナル・コーポレイション | Provides consistent hierarchical extraction of relational data |
JP2006318302A (en) * | 2005-05-13 | 2006-11-24 | Omron Corp | Data preparation device |
-
1987
- 1987-10-06 JP JP62252777A patent/JPH0194429A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0690287A (en) * | 1992-06-25 | 1994-03-29 | Internatl Business Mach Corp <Ibm> | Method and system for finish of gradual retrieval of database by means of telephone |
JPH06203078A (en) * | 1992-12-28 | 1994-07-22 | Sony Corp | Information retrieval method and device therefor |
JPH09274620A (en) * | 1996-04-05 | 1997-10-21 | Casio Comput Co Ltd | Data output device |
JPH1091643A (en) * | 1996-09-19 | 1998-04-10 | Nec Software Ltd | Method and device for generating and retrieving sorted master file utilizing name |
JP2005505042A (en) * | 2001-09-28 | 2005-02-17 | オラクル・インターナショナル・コーポレイション | Provides consistent hierarchical extraction of relational data |
JP2006318302A (en) * | 2005-05-13 | 2006-11-24 | Omron Corp | Data preparation device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5701453A (en) | Logical schema to allow access to a relational database without using knowledge of the database structure | |
RU2182357C2 (en) | Concurrent data processing system for data base passage | |
US6831668B2 (en) | Analytical reporting on top of multidimensional data model | |
US4879648A (en) | Search system which continuously displays search terms during scrolling and selections of individually displayed data sets | |
US6721760B1 (en) | Method and apparatus for searching multi-dimensional database and storage medium stored search program of multi-dimensional database | |
US20020184211A1 (en) | System and method for organizing data | |
EP1213665A2 (en) | Patent classification displaying method and apparatus | |
EP1315103B1 (en) | File search method and apparatus, and index file creation method and device | |
JPH08305616A (en) | Data management system | |
EP0476810B1 (en) | Method and system for retrieving data from joined tables in a computer database | |
US20040078355A1 (en) | Information management system | |
JP2000353177A (en) | Data mining method and system | |
EP0782731B1 (en) | Method and device for extracting information from a database | |
JP2003141158A (en) | Retrieval device and method using pattern under consideration of sequence | |
JPH0194429A (en) | Hierarchical retrieving system in relational-type data base | |
US5649180A (en) | Method for generating hierarchical specification information from software | |
CN100456285C (en) | Method and device for accessing a database | |
EP1282869A1 (en) | A data storing method and data storing structure | |
US6564200B1 (en) | Apparatus for cross referencing routines and method therefor | |
Woerner et al. | Hypertext-based design of a user interface for scheduling | |
CN102043782A (en) | Search system and method capable of establishing index according to codes | |
US20070157205A1 (en) | Method and system for reviewing tasks assigned to a user | |
JPH039473A (en) | Hierarchical menu retrieving system | |
JPH03113672A (en) | Data retrieval device | |
EP1078324A1 (en) | Method and apparatus for collecting, organizing and analyzing data |