2656767 - Implicit subquery producing wrong results | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2656767 - Implicit subquery producing wrong results

Symptom

The following query does not produce the correct results, it should return the max value of ID 12345 but returns nothing

select *
from TestTable
where IDColumn = "12345" and ValueColumn =
(select max(ValueColumn)
from TestTable b
where IDColumn = b.IDColumn)


Read more...

Environment

Adaptive Server Enterprise

Product

SAP Adaptive Server Enterprise 15.7

Keywords

implicit, explicit, subquery, subqueries , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , 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.