Problem Note 38842: An SQL query that is run against an Oracle table might return incorrect results if a WHERE clause contains the BETWEEN operator and a date operand
The SQL procedure might return an incorrect results set from Oracle. This problem can happen if a query contains both a BETWEEN operator and a date operand in the WHERE clause, as shown in the following example:
select * from oralib.sometable
where somedata=1 AND
'31JAN2010:00:00:00'dt BETWEEN (somedate1) AND (somedate2);
You can circumvent this issue by rewriting the WHERE clause, as follows:
where somedata=1 AND
(somedate1 <= '31JAN2010:00:00:00'dt <= somedate2);
Click 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 Oracle | Tru64 UNIX | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
OpenVMS Alpha | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Linux | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Windows Vista | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Standard 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 Datacenter Edition | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 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 Advanced Server | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
z/OS | 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.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2010-04-29 15:07:52 |
Date Created: | 2010-02-24 11:00:49 |