Patent Document ID: 9864776
Application ID: 14569157

Base Claim:
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.

---

Claim 2:
2. The method of claim 1 , wherein the sort sequence of the first selection predicate does not permit returning shared weight data values, wherein a value specified in the first selection predicate is not a shared weight data value, wherein the shared weight data value of the first column of the first row does not match the sort sequence of the query, wherein the shared weight object comprises each individual object selected from: (i) an index, and (ii) a materialized query table, wherein the query is modified upon determining that at least one shared weight value exists in the shared weight object, wherein the unmodified query is not executed prior to adding the second selection predicate to obtain the result set.