Patent ID: 8694527

Claim:
A method for query generation from a previous result set, the method comprising: identifying commonalities in a selection of records of a result set produced by a previously issued query against a database in a database management system executing in memory by at least one processor of a host server, the identified commonalities including at least a portion of identical content in different individual fields in the selection of records of the result set according to a strictness parameter; deriving a query from the identified commonalities based upon the strictness parameter, the strictness parameter indicating a degree of precision for the derived query and limiting a number of different individual fields expressed in the derived query; generating the derived query with lower number of different individual fields using partial matching of the at least a portion of identical content in a subset of the different individual fields in the selection of records when the degree of precision specifies a less strict form of strictness parameter; generating the derived query with higher number of different individual field using complete matching of the at least a portion of identical content in the different individual fields in the selection of records when the degree of precision specifies a more strict form of strictness parameter; executing against the database management system, the derived query produces the selection of records of the result set produced by the previously issued query; and, storing the derived query for subsequent use in querying the database.