Database query generation method and system
AssigneeInternational Business Machines Corporation
InventorDomenico Di Giulio
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorDomenico Di Giulio
Estimating the term…
A process for generating SQL queries to retrieve requested information from a database, whilst applying requested search filters, involving defining a “base” query, which is the simplest SQL query that can be executed to retrieve the information requested by the user (i.e. without applying any search filter), and then use a separate module for each search filter to detect the existence of the table that is required to apply that filter, and possibly add a “WHERE” condition that includes the required table using a sub-query. For each module, if the table required to filter a particular attribute exists in the current query, the “WHERE” condition is added on that table, without adding any sub-query. If on the other hand the required table does not exist in the current query, a sub-query that navigates associations from the tables involved in the current query to the required on is added, and the “WHERE” condition is added to the required table within the sub-query.
A computer implemented method of interrogating a database comprising a plurality of tables, said method comprising the steps of:
A computer program product in a computer readable tangible storage medium comprising instructions for carrying out the steps of a method when said computer program is executed on a computer, the method comprising the steps of:
A system for interrogating a database comprising a plurality of tables, comprising:
Dependencies are inferred from the claim text.