SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 56389: When you use the SQL procedure to join multiple DBMS tables, the column used is from an incorrect table

DetailsHotfixAboutRate It

When you use the SQL procedure to join multiple database management set (DBMS) tables that use the same libref, incorrect results might occur. This issue can occur when all of the following are true:

  • A view that references one of the DBMS tables is created.
  • A second view is created where the following is true about the view:
    • The first view is joined with the second DBMS table.
    • A same-named variable is selected from both the first view and from the DBMS table.
    • One of those same-named variables is given a new unique name.
  • A third query references the second view and includes a WHERE clause where the original same-named variables are being compared using syntax similar to this:
    v1.var < v1.alias_name

When all of these conditions exist, the generated code will include a WHERE clause that compares the wrong variables. This is what is passed to the DBMS:

t1.var < t1.var

This is what should be passed to the DBMS:

t1.var < t2.var

The only workaround is to create a table rather than the second view.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASAster Data nCluster on Linux x649.3 TS1M2
DB2 Universal Database on AIX9.3 TS1M2
DB2 Universal Database on Linux x649.3 TS1M2
Greenplum on Linux x649.3 TS1M2
Netezza TwinFin 32bit blade9.3 TS1M2
Netezza TwinFin 32-bit SMP Hosts9.3 TS1M2
Netezza TwinFin 64-bit S-Blades9.3 TS1M2
Netezza TwinFin 64-bit SMP Hosts9.3 TS1M2
Teradata on Linux9.3 TS1M2
z/OS9.3 TS1M2
Z649.3 TS1M2
Microsoft® Windows® for x649.3 TS1M2
Microsoft Windows 8 Enterprise 32-bit9.3 TS1M2
Microsoft Windows 8 Enterprise x649.3 TS1M2
Microsoft Windows 8 Pro 32-bit9.3 TS1M2
Microsoft Windows 8 Pro x649.3 TS1M2
Microsoft Windows 8.1 Enterprise 32-bit9.3 TS1M2
Microsoft Windows 8.1 Enterprise x649.3 TS1M2
Microsoft Windows 8.1 Pro9.3 TS1M2
Microsoft Windows 8.1 Pro 32-bit9.3 TS1M2
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M2
Microsoft Windows Server 2003 Standard Edition9.3 TS1M2
Microsoft Windows Server 2003 for x649.3 TS1M2
Microsoft Windows Server 20089.3 TS1M2
Microsoft Windows Server 2008 R29.3 TS1M2
Microsoft Windows Server 2008 for x649.3 TS1M2
Microsoft Windows Server 2012 Datacenter9.3 TS1M2
Microsoft Windows Server 2012 R2 Datacenter9.3 TS1M2
Microsoft Windows Server 2012 R2 Std9.3 TS1M2
Microsoft Windows Server 2012 Std9.3 TS1M2
Microsoft Windows XP Professional9.3 TS1M2
Windows 7 Enterprise 32 bit9.3 TS1M2
Windows 7 Enterprise x649.3 TS1M2
Windows 7 Home Premium 32 bit9.3 TS1M2
Windows 7 Home Premium x649.3 TS1M2
Windows 7 Professional 32 bit9.3 TS1M2
Windows 7 Professional x649.3 TS1M2
Windows 7 Ultimate 32 bit9.3 TS1M2
Windows 7 Ultimate x649.3 TS1M2
Windows Vista9.3 TS1M2
Windows Vista for x649.3 TS1M2
64-bit Enabled AIX9.3 TS1M2
64-bit Enabled HP-UX9.3 TS1M2
64-bit Enabled Solaris9.3 TS1M2
HP-UX IPF9.3 TS1M2
Linux9.3 TS1M2
Linux for x649.3 TS1M2
Solaris for x649.3 TS1M2
* 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.