Method, system and program product for rewriting view statements in structured query language (SQL) statements
First Claim
Patent Images
1. A method for rewriting view statements in Structured Query Language (SQL) statements, comprising:
- receiving a SQL statement with a full select portion having a reference to a view that contains a join operation;
moving the reference to the view out of the full select portion;
resolving the view and the join operation separately from the SQL statement, and creating a temporary table with a result of the resolving; and
inserting a reference to the temporary table in the full select portion.
5 Assignments
0 Petitions
Accused Products
Abstract
Under the present invention, when a SQL statement having a full select portion that references a view containing a join operation (e.g., a LOJ operation) is received, the reference to the view will be moved out of the full select portion. Once moved, the view and its join operation will be resolved separately from the SQL statement. The results of this resolution will be placed in a temporary table. A reference to the temporary table is then inserted in the full select portion, and the SQL statement is thereafter performed.
22 Citations
21 Claims
-
1. A method for rewriting view statements in Structured Query Language (SQL) statements, comprising:
-
receiving a SQL statement with a full select portion having a reference to a view that contains a join operation;
moving the reference to the view out of the full select portion;
resolving the view and the join operation separately from the SQL statement, and creating a temporary table with a result of the resolving; and
inserting a reference to the temporary table in the full select portion. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system for rewriting view statements in Structured Query Language (SQL) statements, comprising:
-
a system for receiving a SQL statement with a full select portion having a reference to a view that contains a join operation;
a system for moving the reference to the view out of the full select portion;
a system for resolving the view and the join operation separately from the SQL statement, and creating a temporary table with a result of the resolving; and
a system for inserting a reference to the temporary table in the full select portion and thereafter performing the SQL statement. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A program product stored on a recordable medium for rewriting view statements in Structured Query Language (SQL) statements, which when executed, comprises:
-
program code for receiving a SQL statement with a full select portion having a reference to a view that contains a join operation;
program code for moving the reference to the view out of the full select portion;
program code for resolving the view and the join operation separately from the SQL statement, and creating a temporary table with a result of the resolving; and
program code for inserting a reference to the temporary table in the full select portion and thereafter performing the SQL statement. - View Dependent Claims (15, 16, 17, 18, 19)
-
-
20. A method for deploying an application for rewriting view statements in Structured Query Language (SQL) statements, comprising:
providing a computer infrastructure being operable to;
receive a SQL statement with a full select portion having a reference to a view that contains a join operation;
move the reference to the view out of the full select portion;
resolve the view and the join operation separately from the SQL statement, and create a temporary table with a result of the resolution; and
insert a reference to the temporary table in the full select portion and thereafter perform the SQL statement.
-
21. Computer software embodied in a propagated signal for rewriting view statements in Structured Query Language (SQL) statements, the computer software comprising instructions to cause a computer system to perform the following functions:
-
receive a SQL statement with a full select portion having a reference to a view that contains a join operation;
move the reference to the view out of the full select portion;
resolve the view and the join operation separately from the SQL statement, and create a temporary table with a result of the resolution; and
insert a reference to the temporary table in the full select portion and thereafter perform the SQL statement.
-
Specification