SAP Knowledge Base Article - Preview

2898048 - Suboptimal query plan may be chosen for queries with MIN() or MAX() - SAP ASE

Symptom

  • A suboptimal query plan may be chosen for an aggregate query containing only a single aggregate function (MAX or MIN) in the query's SELECT list with non-equi-SARGs (eg: column < value) and without GROUP BY clause.
  • For example :

SELECT MAX(col1) FROM testtbl WHERE col2 <= '000000001000'

SELECT MIN(col1) FROM testtbl WHERE col2 >= '000000249000'


Read more...

Environment

  • SAP Adaptive Server Enterprise 15.7
  • SAP Adaptive Server Enterprise 16.0

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0

Keywords

performance, slow, CR#821176, CR821176, #821176 , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Bug Filed

About this page

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

Search for additional results

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