4. The method of claim 1 , wherein the sort sequence of the first selection predicate of the query is unique, the method further comprising prior to modifying the query: retrieving a weight for each character in a first variable specified in the first selection predicate of the unmodified query, wherein the using the second selection predicate as a key selection against the shared weight object comprises determining whether the weight of the first variable matches the weight for each character of a value of the first column of the shared weight object of the database.
1. A method, comprising: receiving a query specifying to access data in a first column of a shared weight object of a database based on a first selection predicate applied to the first column; determining that a sort sequence of the first selection predicate of the query does not match a shared weight sort sequence of the first column of the shared weight object, wherein the first column of the shared weight object includes shared weight data values; modifying the query by adding a second selection predicate to the query based on the sort sequence of the first selection predicate of the query and the shared weight sort sequence of the first column of the shared weight object, wherein the second selection predicate is applied to the first column of the shared weight object, wherein the second selection predicate, when executed, excludes a first row that would have been returned using the shared weight object to process the unmodified query, wherein the first column of the first row comprises a shared weight data value; and executing the modified query by using the second selection predicate as a key selection against the first column in the shared weight object to return a result set, wherein the result set does not include the shared weight data value of the first column of the first row that would have been returned using the shared weight object to process the unmodified query without the second selection predicate.