Problem Note 36177: Incorrect results might occur when you run a PROC SQL join with an additional WHERE clause against Teradata tables
Incorrect results might be returned when you submit an SQL procedure join with an additional WHERE clause that contains the AND or the OR logical operator followed by parentheses.
In rare cases, SAS/ACCESS® Interface to Teradata misplaces parentheses in WHERE
clauses that are passed to Teradata for evaluation.
For example, suppose you submit the following code:
libname tlib teradata . . .more options. . . ;
proc sql;
select a.*
from tlib.tab1 a left join
tlib.tab2 b on a.col=b.col
where a.col2=1 and (b.col2 like 'A%' OR b.col3=2);
In this case, the software translates the WHERE clause as follows, which leads to an incorrect result:
where a."col2"=1 and b."col2" like 'A%' or (b.col3=2)
Select the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to Teradata | z/OS | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Windows Vista | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Linux | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
An incorrect result set might be returned to SAS
® because of misplaced parentheses.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2009-07-21 11:19:54 |
Date Created: | 2009-06-08 15:52:44 |