IP Library › Granted Patent US 11,074,296
Granted Patent B2
US 11,074,296 · App. 16/125,195 · Granted Jul 27, 2021

Query generation assist method and query generation assist apparatus

Inventors: Yohsuke Ishii (Tokyo, JP); Yuuya Isoda (Tokyo, JP)
Assignee: HITACHI, LTD.
G06F16/90324G06F16/2456G06F16/24578G06F16/9024
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,074,296
App. No.
16/125,195
Granted
Jul 27, 2021
Kind
B2
Abstract

To derive a query which can be joined and which gives non-zero pieces of data even if joined. A query generation assist method to assist generation of a query to extract data from a database includes: a first step of accepting, at the computer, a condition of extracting data to be acquired from the database as a data extraction condition; a second step of extracting, as graph data and at the computer, data which can be joined in data of the database; a third step of extracting subgraphs at the computer based on the data extraction condition from the graph data, and acquiring the subgraphs as query candidates; and a fourth step of calculating, at the computer, rank values of the query candidates and outputting the query candidates ranked according to the rank values.

Claims (23)

1. A query generation assist apparatus for assisting generation of a query to extract data from a database, the apparatus comprising:

a memory;

an input/output device; and

a processor communicatively coupled to the memory and the input/output device, wherein the processor is configured to

accept a condition of extracting data to be acquired from the database as a data extraction condition,

extract, as graph data, data which can be joined in data of the database,

extract subgraphs based on the data extraction condition from the graph data,

set a value to a predetermined number, the value corresponding to an upper limit of a number of combinations of the subgraphs included in matching entries in the data extraction condition,

determine if the value is equal to the upper limit,

when the value is equal to the upper limit, combine a plurality of subgraphs,

generate query candidates based on data extraction conditions,

integrate the query candidates into a group of candidates,

determine if the group of candidates should be executed at the database,

when the groups of candidates are executed at the database, the acquired data is saved in the database and the processor receives a competition message, and

calculate rank values of the query candidates and output the query candidates ranked according to the rank values.

2. The query generation assist apparatus according to claim 1 , wherein the processor accepts an other query candidate which is a conversion target and not in the query candidates generated, and generates a query based on a correspondence between the other query candidate and the subgraphs.

3. The query generation assist apparatus according to claim 1 , wherein the processor

accepts a candidate derivation condition including at least one of a table count, a data join count and a count of table-joining routes, in addition to the data extraction condition,

extracts subgraphs satisfying the candidate derivation condition, and

outputs as a narrow-down result the subgraphs satisfying the candidate derivation condition.

4. The query generation assist apparatus according to claim 1 ,

wherein the processor accepts a candidate derivation condition including at least one of a table count, a data join count and a count of table-joining routes, in addition to the data extraction condition, and

the processor calculates the rank values from at least one of the table count, the data join count and the count of table-joining routes.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 11, 2018
From: ISHII, YOHSUKE; ISODA, YUUYA
To: HITACHI, LTD.
Reel/Frame 046834/0869 →
Priority Claims (1)
JP JP2018-006987 · Jan 19, 2018 · national
Continuity (1)
Related Publication 20190228084A1 · Jul 25, 2019