![]() | ![]() | ![]() | ![]() |
You might get unexpected results when you submit a query with a WHERE clause.
For example, the following demonstrates this behavior in SAS/ACCESS® Interface to Netezza. The query is to multiple nested views that contain ORDER BY clauses and aggregate functions and a WHERE clause. If a DISTINCT clause was used when the nested views were created, the WHERE is ignored.
Tracing shows the absence of the WHERE:
NETEZZA_8: Prepared: on connection 3 select t1."Sex", SUM(t1."Age") as "SUM_of_Age" from "TEST".."CLASS_NZ" t1 where t1."Age" > 14 group by t1."Sex" order by t1."Sex" asc
Using DISTINCT when creating the view results in the same behavior:
Tracing again shows the absence of the WHERE:
NETEZZA_8: Prepared: on connection 3 select distinct t1."Sex", SUM(t1."Age") as "SUM_of_Age" from "TEST".."CLASS_NZ" t1 where t1."Age" > 14 group by t1."Sex"
| Product Family | Product | System | Product Release | SAS Release | ||
| Reported | Fixed* | Reported | Fixed* | |||
| SAS System | SAS/ACCESS Interface to Netezza | Microsoft® Windows® for x64 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 |
| Microsoft Windows 8 Enterprise 32-bit | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows 8 Enterprise x64 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows 8 Pro 32-bit | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows 8 Pro x64 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows 8.1 Enterprise 32-bit | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows 8.1 Enterprise x64 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows 8.1 Pro | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows 8.1 Pro 32-bit | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows Server 2003 Datacenter Edition | 9.3_M1 | 9.3 TS1M2 | ||||
| Microsoft Windows Server 2003 Enterprise Edition | 9.3_M1 | 9.3 TS1M2 | ||||
| Microsoft Windows Server 2003 Standard Edition | 9.3_M1 | 9.3 TS1M2 | ||||
| Microsoft Windows Server 2003 for x64 | 9.3_M1 | 9.3 TS1M2 | ||||
| Microsoft Windows Server 2008 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows Server 2008 R2 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows Server 2008 for x64 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows Server 2012 Datacenter | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows Server 2012 R2 Datacenter | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows Server 2012 R2 Std | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows Server 2012 Std | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Microsoft Windows XP Professional | 9.3_M1 | 9.3 TS1M2 | ||||
| Windows 7 Enterprise 32 bit | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Windows 7 Enterprise x64 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Windows 7 Home Premium 32 bit | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Windows 7 Home Premium x64 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Windows 7 Professional 32 bit | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Windows 7 Professional x64 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Windows 7 Ultimate 32 bit | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Windows 7 Ultimate x64 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Windows Vista | 9.3_M1 | 9.3 TS1M2 | ||||
| Windows Vista for x64 | 9.3_M1 | 9.3 TS1M2 | ||||
| 64-bit Enabled AIX | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| 64-bit Enabled HP-UX | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| 64-bit Enabled Solaris | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| HP-UX IPF | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Linux | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
| Linux for x64 | 9.3_M1 | 9.4_M2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
A fix for this issue for Base SAS 9.4_M1 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/M88.html#54658A fix for this issue for Base SAS 9.4_M2 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/R19.html#54658| Type: | Problem Note |
| Priority: | high |
| Date Modified: | 2014-11-26 14:29:30 |
| Date Created: | 2014-11-18 12:35:39 |



