SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 65262: Merge joins in PROC FEDSQL return an incorrect number of rows

DetailsHotfixAboutRate It

Left, right, and full outer merge joins in a FEDSQL procedure can return inconsistent results when the following conditions are both true:

  • The ON clause contains an inequality expression.
  • The ON clause is combined with an equality expression for an AND condition.

The following syntax can encounter this issue:

proc fedsql _method;
select count(*)
   from table-name as a _merge_ left join bvm as b
   on a.ArticleId = b.ArticleId and a.StoreId = b.StoreId
   and a.Date between b.DateFrom and b.DateTo;
quit;

Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS ViyaMicrosoft® Windows® for x643.43.4Viya
Microsoft Windows 8 Enterprise 32-bit3.4
Microsoft Windows 8 Enterprise x643.43.4Viya
Microsoft Windows 8 Pro 32-bit3.4
Microsoft Windows 8 Pro x643.43.4Viya
Microsoft Windows 8.1 Enterprise 32-bit3.4
Microsoft Windows 8.1 Enterprise x643.43.4Viya
Microsoft Windows 8.1 Pro 32-bit3.4
Microsoft Windows 8.1 Pro x643.43.4Viya
Microsoft Windows 103.43.4Viya
Microsoft Windows 95/983.4
Microsoft Windows 2000 Advanced Server3.4
Microsoft Windows 2000 Datacenter Server3.4
Microsoft Windows 2000 Server3.4
Microsoft Windows 2000 Professional3.4
Microsoft Windows NT Workstation3.4
Microsoft Windows Server 2003 Datacenter Edition3.4
Microsoft Windows Server 2003 Enterprise Edition3.4
Microsoft Windows Server 2003 Standard Edition3.4
Microsoft Windows Server 2003 for x643.43.4Viya
Microsoft Windows Server 20083.4
Microsoft Windows Server 2008 R23.43.4Viya
Microsoft Windows Server 2008 for x643.43.4Viya
Microsoft Windows Server 2012 Datacenter3.43.4Viya
Microsoft Windows Server 2012 R2 Datacenter3.43.4Viya
Microsoft Windows Server 2012 R2 Std3.43.4Viya
Microsoft Windows Server 2012 Std3.43.4Viya
Microsoft Windows Server 20163.43.4Viya
Microsoft Windows Server 20193.4
Microsoft Windows XP Professional3.4
Windows 7 Enterprise 32 bit3.4
Windows 7 Enterprise x643.43.4Viya
Windows 7 Home Premium 32 bit3.4
Windows 7 Home Premium x643.43.4Viya
Windows 7 Professional 32 bit3.4
Windows 7 Professional x643.43.4Viya
Windows 7 Ultimate 32 bit3.4
Windows 7 Ultimate x643.43.4Viya
Windows Millennium Edition (Me)3.4
Windows Vista3.4
Windows Vista for x643.43.4Viya
Linux for x643.43.4Viya
* 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.