发明名称 |
METHOD AND SYSTEM FOR REWRITING A DATABASE QUERY |
摘要 |
The invention relates to a method and database system for rewriting a SQL query having at least one null sensitive expression (NSE) in a select list of the query, the query comprising at least one outer join command to be performed on at least two tables and involving a view or a Derived Table (DT). The method comprising the steps of: identifying at least one unmatching row belonging to the view or DT using non-nullable fields that belong to the outermost table in the view or DT; converting the NSE(s) from the at least one identified rows into a SQL case construct; and performing the at least one outer join. The database system comprising means for rewriting a SQL query having at least one null sensitive expression (NSE) in a select list of the query, the query comprising at least one outer join command to be performed on at least two tables and involving a view or a Derived Table (DT). The system comprises a device configured to identify at least one unmatching row belonging to the view or DT using non-nullable fields that belong to the outermost table in the view or DT; a device configured to convert the NSE(s) from the at least one identified rows into a SQL case construct; and a device configured to perform the at least one outer join.
|
申请公布号 |
US2008154841(A1) |
申请公布日期 |
2008.06.26 |
申请号 |
US20060612019 |
申请日期 |
2006.12.18 |
申请人 |
REICHART DONALD;SATHYANARAYAN PRADEEP;GHAZAL AHMAD |
发明人 |
REICHART DONALD;SATHYANARAYAN PRADEEP;GHAZAL AHMAD |
分类号 |
G06F17/30 |
主分类号 |
G06F17/30 |
代理机构 |
|
代理人 |
|
主权项 |
|
地址 |
|