METHOD, SYSTEM, PROGRAM AND DATA STRUCTURE FOR CLEANING A DATABASE TABLE
First Claim
1. A computer implemented method for performing a clean operation on an input table having an input table name, comprising:
- receiving at least one rule definition, wherein each rule definition indicates a find criteria, a replacement value, and an input data column in the input table;
searching, for each rule definition, the input data column for any fields that match the find criteria;
determining whether the rule definition specifies an output table; and
in response to determining that the rule definition does not specify an output table, directly inserting, for each rule definition, the replacement value in the fields in the input data column that match the find criteria, wherein subsequent applications of additional rule definitions applied to the same input data column operate on replacement values inserted in the input data column in previously applied rule definitions, wherein at least one of said rule definition includes multiple find criteria and a corresponding replacement value for each find criteria, wherein searching the input data column comprises applying each of the multiple find criteria to one field until one of;
(i) a match occurs and (ii) none of the multiple find criteria are found to match the field content, wherein inserting the replacement value comprises inserting the replacement value corresponding to one find criteria that matched the field content, wherein a sort column includes values to use to sort the multiple find criteria and corresponding replacement value, and wherein searching comprises applying the multiple find criteria to each field in the order specified in the sort column.
0 Assignments
0 Petitions
Accused Products
Abstract
Disclosed is a method, system, program, and data structure for performing a clean operation on an input table. The input table to clean is indicated in an input data table name. At least one rule definition is processed to clean the input table. Each rule definition indicates a find criteria, a replacement value, and an input data column in the input table. For each rule definition, the input data column is searched for any fields that match the find criteria. The replacement value for the particular rule definition is inserted in the fields in the input data column that match the find criteria. Subsequent applications of additional rule definitions applied to the same input data column operate on replacement values inserted in the input data column during previously applied rule definitions. At least one of said rule definition includes multiple find criteria and a corresponding replacement value for each find criteria.
-
Citations
16 Claims
-
1. A computer implemented method for performing a clean operation on an input table having an input table name, comprising:
-
receiving at least one rule definition, wherein each rule definition indicates a find criteria, a replacement value, and an input data column in the input table;
searching, for each rule definition, the input data column for any fields that match the find criteria;
determining whether the rule definition specifies an output table; and
in response to determining that the rule definition does not specify an output table, directly inserting, for each rule definition, the replacement value in the fields in the input data column that match the find criteria, wherein subsequent applications of additional rule definitions applied to the same input data column operate on replacement values inserted in the input data column in previously applied rule definitions, wherein at least one of said rule definition includes multiple find criteria and a corresponding replacement value for each find criteria, wherein searching the input data column comprises applying each of the multiple find criteria to one field until one of;
(i) a match occurs and (ii) none of the multiple find criteria are found to match the field content, wherein inserting the replacement value comprises inserting the replacement value corresponding to one find criteria that matched the field content, wherein a sort column includes values to use to sort the multiple find criteria and corresponding replacement value, and wherein searching comprises applying the multiple find criteria to each field in the order specified in the sort column. - View Dependent Claims (2, 3, 4)
-
-
5. A computer implemented system for performing a clean operation on an input table having an input data table name, comprising;
-
means for receiving at least one rule definition, wherein each rule definition indicates a find criteria, a replacement value, and an input data column in the input table;
means for searching, for each rule definition, the input data column for any fields that match the find criteria;
means for determining whether the rule definition specifies an output table; and
means for, in response to determining that the rule definition does not specify an output table, directly inserting, for each rule definition, the replacement value in the fields in the input data column that match the find criteria, wherein subsequent applications of additional rule definitions applied to the same input data column operate on replacement values inserted in the input data column in previously applied rule definitions;
wherein at least one of said rule definition includes multiple find criteria and a corresponding replacement value for each find criteria, wherein the means for searching the input data column comprises applying each of the multiple find criteria to one field until one of;
(i) a match occurs and (ii) none of the multiple find criteria are found to match the field content, and wherein the means for inserting the replacement value comprises inserting the replacement value corresponding to one find criteria that matched the field content, wherein a sort column includes values to use to sort the multiple find criteria and corresponding replacement value, and wherein the means for searching comprises applying the multiple find criteria to each field in the order specified in the sort column. - View Dependent Claims (6, 7, 8)
-
-
9. An article of manufacture for use performing a clean operation on an input table in a database having an input data table name, the article of manufacture comprising computer usable media including at least one computer program embedded therein that causes the computer to perform:
-
receiving at least one rule definition, wherein each rule definition indicates a find criteria, a replacement value, and an input data column in the input table;
searching, for each rule definition, the input data column for any fields that match the find criteria;
determining whether the rule definition specifies an output table; and
in response to determining that the rule definition does not specify an output table, directly inserting, for each rule definition, the replacement value in the fields in the input data column that match the find criteria, wherein subsequent applications of additional rule definitions applied to the same input data column operate on replacement values inserted in the input data column in previously applied rule definitions;
wherein at least one of said rule definition includes multiple find criteria and a corresponding replacement value for each find criteria, wherein searching the input data column comprises applying each of the multiple find criteria to one field until one of;
(i) a match occurs and (ii) none of the multiple find criteria are found to match the field content, and wherein inserting the replacement value comprises inserting the replacement value corresponding to one find criteria that matched the field content, wherein a sort column includes values to use to sort the multiple find criteria and corresponding replacement value, and wherein searching comprises applying the multiple find criteria to each field in the order specified in the sort column. - View Dependent Claims (10, 11, 12)
-
-
13. A memory device including a command data structure, comprising:
-
an input data table name parameter indicating the input table subject to the clean operation; and
at least one rule definition, wherein each rule definition includes a find criteria, a replacement value, and an input data column in the input table, wherein, for each rule definition, the input data column is searched for any fields that match the find criteria, wherein, for each rule definition, it is determined whether the rule definition specifies an output table, and in response to determining that the rule definition does not specify an output table, the replacement value is directly inserted in the fields in the input data column that match the find criteria, and wherein subsequent applications of additional rule definitions applied to the same input data column operate on replacement values inserted in the input data column in previously applied rule definitions, wherein at least one of said rule definition further includes multiple find criteria and a corresponding replacement value for each find criteria, wherein the input data column is searched by applying each of the multiple find criteria to one field until one of;
(i) a match occurs and (ii) none of the multiple find criteria are found to match the field content, and wherein the replacement value corresponding to the matching find criteria is inserted into the field, wherein a sort column includes values to use to sort the multiple find criteria and corresponding replacement value, and wherein the multiple find criteria are applied to each field in the input data column in the order specified in the sort column. - View Dependent Claims (14, 15, 16)
-
Specification