Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
ALLBASE/SQL Performance and Monitoring Guidelines: HP 3000 MPE/iX Computer Systems > Chapter 3 Guidelines on Query Design

Using MIN/MAX Functions in Predicates

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

An index scan may be used for a query containing a single MIN() or MAX() function in the select list if an index exists on the column the function is applied to, and if the function is applied to the first column in the index. The index scan is considered for queries with or without predicates, including MIN() or MAX() on a join column in a nested loop join, provided the MIN() or MAX() is applied to a column in the outermost table.

An index scan plan for MIN() or MAX() cannot be considered for queries in which there is an expression, an ORDER BY or GROUP BY clause, or where tables are joined using the sort/merge join method.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.