Quantcast
Channel: SCN: Message List - SAP MaxDB
Viewing all articles
Browse latest Browse all 2539

Re: Maxdb 7.9 SQL Question (+) operator

$
0
0

Hi,

 

if you are a SAP customer, please have a look at SAP note 1325691.

 

The problem occurs, because the Oracle Outer Join syntax [+] is not supported by default in newer MaxDB versions anymore, because it is outdated and not fully ANSI standard compliant.

 

You now have two options:

 

1. Rewrite your SQL (and in addition benefit from the QueryRewrite MaxDB feature)
Example

select * from dual t1, dual t2

where t1.dummy = t2.dummy ( +)

and t1.dummy = 'x'

 

Ansi Outer Join Syntax:

select * from dual t1 left outer join dual t2 on t1.dummy = t2.dummy

where t1.dummy = 'x'

 

2. Change EnableLegacyOuterJoinSyntax to YES
Changing this MaxDB parameter will support the old join syntax, but disable the QueryRewrite feature for these 'old' joins. Still, the new join syntax should be faster depending on the query...

Regards,
Thorsten


Viewing all articles
Browse latest Browse all 2539

Trending Articles