Claims Analysis
Total Claims: 21
Claim 1
Independent Claim
171 words
A computer-implemented method of transforming an EXISTS-equivalent subquery to query components that may be processed more efficiently than the EXISTS-equivalent subquery, the method comprising the steps of: A) removing at least one logical expression from a WHERE clause in said EXISTS-equivalent subquery to produce a revised EXISTS-equivalent subquery; B) generating one or more substitute query components by performing the following steps for each of said at least one logical expression removed from said WHERE clause: B1) determining whether said logical expression contains a reference to a table in a FROM list of a SELECT statement in said EXISTS-equivalent subquery, B2) determining a substitute query component for said logical expression based on a) whether said logical expression contains a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery, and b) whether said EXISTS-equivalent subquery is equivalent to an EXISTS subquery or to a NOT EXISTS subquery; and C) replacing the EXISTS-equivalent subquery with said revised EXISTS-equivalent subquery and said one or more substitute query components.
Claim 2
Dependent Claim
171 words
A computer-implemented method of transforming an EXISTS-equivalent subquery to query components that may be processed more efficiently than the EXISTS-equivalent subquery, the method comprising the steps of: A) removing at least one logical expression from a WHERE clause in said EXISTS-equivalent subquery to produce a revised EXISTS-equivalent subquery; B) generating one or more substitute query components by performing the following steps for each of said at least one logical expression removed from said WHERE clause: B1) determining whether said logical expression contains a reference to a table in a FROM list of a SELECT statement in said EXISTS-equivalent subquery, B2) determining a substitute query component for said logical expression based on a) whether said logical expression contains a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery, and b) whether said EXISTS-equivalent subquery is equivalent to an EXISTS subquery or to a NOT EXISTS subquery; and C) replacing the EXISTS-equivalent subquery with said revised EXISTS-equivalent subquery and said one or more substitute query components.
Claim 3
Dependent Claim
103 words
The method of claim 1 further comprising the steps of: determining whether said EXISTS-equivalent subquery is equivalent to an EXISTS subquery or to a NOT EXISTS subquery; if said EXISTS-equivalent query is equivalent to an EXISTS subquery, then combining said revised EXISTS-equivalent query and said one or more substitute queries with a disjunctive operator to create an expression semantically equivalent to said EXISTS-equivalent subquery; and if said EXISTS-equivalent query is equivalent to a NOT EXISTS subquery, then combining said revised EXISTS-equivalent query and said one or more substitute queries with a conjunctive operator to create an expression semantically equivalent to said EXISTS-equivalent subquery.
Claim 4
Dependent Claim
49 words
The method of claim 1 further comprising the step of merging said revised EXISTS-equivalent query and said one or more substitute query components based upon access paths used by a database application to identify data satisfied by said revised EXISTS-equivalent query and said one or more substitute query components.
Claim 5
Dependent Claim
170 words
The method of claim 1 wherein said step of determining a substitute query component for said logical expression comprises: if said logical expression contains a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery, then establishing as said substitute query component a new subquery that has a SELECT statement identical to said SELECT statement in said EXISTS-equivalent subquery, and which has a WHERE clause that consists of said logical expression; if said logical expression does not contain a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery and said EXISTS-equivalent subquery is equivalent to an EXISTS subquery, then establishing as said substitute query component said logical expression; and if said logical expression does not contain a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery and said EXISTS-equivalent subquery is equivalent to a NOT EXISTS subquery, then establishing as said substitute query component a negative of said logical expression.
Claim 6
Dependent Claim
93 words
The method of claim 1 wherein said EXISTS-equivalent subquery is not an EXISTS subquery nor a NOT EXISTS subquery, the method further comprising the steps of: if said EXISTS-equivalent subquery is semantically equivalent to an EXISTS subquery, then transforming said EXISTS-equivalent subquery into an EXISTS subquery prior to performing the step of removing at least one logical expression; and if said EXISTS-equivalent subquery is semantically equivalent to a NOT EXISTS subquery, then transforming said EXISTS-equivalent subquery into a NOT EXISTS subquery prior to performing the step of removing at least one logical expression.
Claim 7
Dependent Claim
14 words
The method of claim 1 wherein said EXISTS-equivalent subquery is a NOT IN subquery.
Claim 8
Dependent Claim
173 words
A computer-readable medium having stored thereon sequences of instructions, said sequences of instructions including instructions which, when executed by a processor, cause said processor to perform the steps of: A) removing at least one logical expression from a WHERE clause in an EXISTS-equivalent subquery to produce a revised EXISTS-equivalent subquery; B) generating one or more substitute query components by performing the following steps for each of said at least one logical expression removed from said WHERE clause: B1) determining whether said logical expression contains a reference to a table in a FROM list of a SELECT statement in said EXISTS-equivalent subquery, B2) determining a substitute query component for said logical expression based on a) whether said logical expression contains a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery, and b) whether said EXISTS-equivalent subquery is equivalent to an EXISTS subquery or to a NOT EXISTS subquery; and C) replacing the EXISTS-equivalent subquery with said revised EXISTS-equivalent subquery and said one or more substitute query components.
Claim 9
Dependent Claim
173 words
A computer-readable medium having stored thereon sequences of instructions, said sequences of instructions including instructions which, when executed by a processor, cause said processor to perform the steps of: A) removing at least one logical expression from a WHERE clause in an EXISTS-equivalent subquery to produce a revised EXISTS-equivalent subquery; B) generating one or more substitute query components by performing the following steps for each of said at least one logical expression removed from said WHERE clause: B1) determining whether said logical expression contains a reference to a table in a FROM list of a SELECT statement in said EXISTS-equivalent subquery, B2) determining a substitute query component for said logical expression based on a) whether said logical expression contains a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery, and b) whether said EXISTS-equivalent subquery is equivalent to an EXISTS subquery or to a NOT EXISTS subquery; and C) replacing the EXISTS-equivalent subquery with said revised EXISTS-equivalent subquery and said one or more substitute query components.
Claim 10
Dependent Claim
117 words
The computer-readable medium of claim 7 further containing instructions which, when executed by said processor, would cause said processor to perform the steps of: determining whether said EXISTS-equivalent subquery is equivalent to an EXISTS subquery or to a NOT EXISTS subquery; if said EXISTS-equivalent query is equivalent to an EXISTS subquery, then combining said revised EXISTS-equivalent query and said one or more substitute queries with a disjunctive operator to create an expression semantically equivalent to said EXISTS-equivalent subquery; and if said EXISTS-equivalent query is equivalent to a NOT EXISTS subquery, then combining said revised EXISTS-equivalent query and said one or more substitute queries with a conjunctive operator to create an expression semantically equivalent to said EXISTS-equivalent subquery.
Claim 11
Dependent Claim
63 words
The computer-readable medium of claim 7 further containing instructions which, when executed by said processor, would cause said processor to perform the steps of: merging said revised EXISTS-equivalent query and said one or more substitute query components based upon access paths used by a database application to identify data satisfied by said revised EXISTS-equivalent query and said one or more substitute query components.
Claim 12
Dependent Claim
171 words
The computer-readable medium of claim 7 wherein said step of determining a substitute query component for said logical expression comprises: if said logical expression contains a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery, then establishing as said substitute query component a new subquery that has a SELECT statement identical to said SELECT statement in said EXISTS-equivalent subquery, and which has a WHERE clause that consists of said logical expression; if said logical expression does not contain a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery and said EXISTS-equivalent subquery is equivalent to an EXISTS subquery, then establishing as said substitute query component said logical expression; and if said logical expression does not contain a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery and said EXISTS-equivalent subquery is equivalent to a NOT EXISTS subquery, then establishing as said substitute query component a negative of said logical expression.
Claim 13
Dependent Claim
108 words
The computer-readable medium of claim 7 wherein said EXISTS-equivalent subquery is not an EXISTS subquery nor a NOT EXISTS subquery, the computer-readable medium further containing instructions which, when executed by said processor, would cause said processor to perform the steps of: if said EXISTS-equivalent subquery is semantically equivalent to an EXISTS subquery, then transforming said EXISTS-equivalent subquery into an EXISTS subquery prior to performing the step of removing at least one logical expression; and if said EXISTS-equivalent subquery is semantically equivalent to a NOT EXISTS subquery, then transforming said EXISTS-equivalent subquery into a NOT EXISTS subquery prior to performing the step of removing at least one logical expression.
Claim 14
Dependent Claim
81 words
A computer-implemented method of transforming an EXISTS-equivalent subquery to query components that may be processed more efficiently than the EXISTS-equivalent subquery, the method comprising the steps of: A) removing at least one logical expression from a clause in said EXISTS-equivalent subquery to produce a revised EXISTS-equivalent subquery; B) determining one or more substitute query components for said at least one logical expression; and C) replacing the EXISTS-equivalent subquery with said revised EXISTS-equivalent subquery and said one or more substitute query components.
Claim 15
Dependent Claim
81 words
A computer-implemented method of transforming an EXISTS-equivalent subquery to query components that may be processed more efficiently than the EXISTS-equivalent subquery, the method comprising the steps of: A) removing at least one logical expression from a clause in said EXISTS-equivalent subquery to produce a revised EXISTS-equivalent subquery; B) determining one or more substitute query components for said at least one logical expression; and C) replacing the EXISTS-equivalent subquery with said revised EXISTS-equivalent subquery and said one or more substitute query components.
Claim 16
Dependent Claim
29 words
The method of claim 12 wherein said step of removing at least one logical expression from a clause includes removing at least one logical expression from a WHERE clause.
Claim 17
Dependent Claim
30 words
The method of claim 12 wherein the one or more substitute query components are determined based on whether said at least one logical expression contains a particular type of reference.
Claim 18
Dependent Claim
70 words
The method of claim 14 wherein: the method further comprises the step of determining whether said logical expression contains a reference to a table in a FROM list of a SELECT statement in said EXISTS-equivalent subquery; and the one or more substitute query components are determined based on whether said logical expression contains a reference to a table in a FROM list of a SELECT statement in said EXISTS-equivalent subquery.
Claim 19
Dependent Claim
33 words
The method of claim 12 wherein the one or more substitute query components are determined based on whether said EXISTS-equivalent subquery is equivalent to an EXISTS subquery or to a NOT EXISTS subquery.
Claim 20
Dependent Claim
31 words
The method of claim 16 wherein the one or more substitute query components are also determined based on whether said at least one logical expression contains a particular type of reference.
Claim 21
Dependent Claim
70 words
The method of claim 17 wherein: the method further comprises the step of determining whether said logical expression contains a reference to a table in a FROM list of a SELECT statement in said EXISTS-equivalent subquery; and the one or more substitute query components are determined based on whether said logical expression contains a reference to a table in a FROM list of a SELECT statement in said EXISTS-equivalent subquery.