SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 32537: Incorrect query results might be generated after you apply hot fixes E9BB80, E9BB98, and E9BB99 or you run SAS® 9.2

DetailsHotfixAboutRate It

After you apply hot fixes E9BB80, E9BB98 and E9BB99 or you run SAS 9.2, submitting a query that includes an in-line view, an outer join, and a WHERE clause can result in the WHERE conditions being added to the ON clause. Consequently, incorrect results might be generated.

For example, the results of the following query illustrates the incorrect behavior:

proc sql;
   create table fragerror as
   select a.* from
      (select distinct * from db2lib.where_on_issue
       where fragtype ^= 'B') a left join
      (select distinct * from db2lib.where_on_issue
                         where fragtype='B') b 
                         on a.cd=b.cd where 
                                      (a.startdate < b.startdate or
                                       a.enddate > b.enddate);
   quit;

In this example, when the ON A.CD=B.CD WHERE . . . clause is passed to the database, the WHERE is replaced with the AND operator, as shown here:

on a."cd" = b."cd" 
and (a."startdate" < b."startdate") or (a."enddate" > b."enddate") 

The WHERE-clause conditions are now part of the ON clause, which can generate undesired results.

There is currently no workaround for this problem.

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASTru64 UNIX9.1 TS1M3 SP49.2 TS1M0
OpenVMS Alpha9.1 TS1M3 SP49.2 TS1M0
Linux9.1 TS1M3 SP49.2 TS1M0
Linux on Itanium9.1 TS1M3 SP49.2 TS1M0
HP-UX IPF9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS1M0
Windows Vista9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft® Windows® for x649.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
z/OS9.1 TS1M3 SP49.2 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS1M0
* 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.