2076282 - [SAP IQ] Query with coalesce, isnull, or case expressions could generate in correct result in Iq16 SP08.x. | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2076282 - [SAP IQ] Query with coalesce, isnull, or case expressions could generate in correct result in Iq16 SP08.x.

Symptom

IQ is getting wrong results set even though there are data to meet the conditions.

 [Query]

    SELECT ISNULL(A.PSTM_EXPI_YMD,'1111-01-01') as a
      ,  ISNULL(A.EXPI_YMD,'1111-01-01') as b
      ,  (CASE WHEN  ISNULL(A.PSTM_EXPI_YMD,'1111-01-01') > ISNULL(A.EXPI_YMD,'1111-01-01')
               THEN  A.PSTM_EXPI_YMD
               ELSE  A.EXPI_YMD
          END) AS MANGI_DATE
      ...
   WHERE A.EDPS_CSN        =  B.EDPS_CSN
    ...
   AND MANGI_DATE < DATE('20141130');


Read more...

Environment

SAP IQ16 SP08.x less than SP8.7

Product

SAP IQ 16.0

Keywords

incorrect result, coalesce, isnull, case expression, sybase, IQ, problem, incorrect, wrong, result, value , KBA , BC-SYB-IQ , Sybase IQ , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.