摘要:
A system and method for modifying or converting predicates involving a comparison with a string constant in a query is provided so that the predicates can be evaluated by an external or remote source that uses a different collating sequence, thereby effectively reducing the amount of data sent over a network. Techniques for predicate simplification are also provided for complex predicates. Although it is desirable that the converted predicate precisely match the original predicate, it is not necessary; an imprecise predicate that selects a superset of the target rows is sufficient. Thus, techniques for imprecise conversion are also provided. For an imprecise conversion, the original query is further evaluated against the obtained superset to obtain the final result, whereas for a precise conversion, the returned set is the required set, and no further evaluation is needed.