Invention Grant
US07539660B2 Method and system for generating SQL joins to optimize performance
失效
用于生成SQL连接以优化性能的方法和系统
- Patent Title: Method and system for generating SQL joins to optimize performance
- Patent Title (中): 用于生成SQL连接以优化性能的方法和系统
-
Application No.: US10692166Application Date: 2003-10-23
-
Publication No.: US07539660B2Publication Date: 2009-05-26
- Inventor: Robyn Lee Focazio , Kumar Marappan , Fabian F. Morgan , Brent Russel Phillips
- Applicant: Robyn Lee Focazio , Kumar Marappan , Fabian F. Morgan , Brent Russel Phillips
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Yee & Associates, P.C.
- Agent William H. Steinberg; Rudolf O. Siegesmund
- Main IPC: G06F7/00
- IPC: G06F7/00 ; G06F17/30

Abstract:
An automated method for creating only the necessary joins in a SQL query. The present invention comprises a Query Program (QP), a Query Generation Program (QGP), and a Clause Generation Program (CGP). The QP accepts the query fields, filters, and sort criteria from the user, generates the query, sends the query to the database, and displays the query results. The QGP creates the query clause strings and inserts the strings into the SQL template. The QGP generates the SELECT, (filter) WHERE, and ORDER BY clauses. The QGP analyzes each parameter in a parameter list to determine if the parameter is on the added aliases list. If the parameter is not on the added aliases list, the QGP runs the CGP for the parameter. The CGP generates the FROM, JOIN, and (join) WHERE clauses and adds the clauses to the appropriate clause strings.
Public/Granted literature
- US20050091199A1 Method and system for generating SQL joins to optimize performance Public/Granted day:2005-04-28
Information query