Execution plan image:
Partition operation.
Describes partition boundaries applicable to a single partitioned object (table or index). The partition boundaries are provided by the values of pstart and pstop of the PARTITION.
Execution plan image:
Partition operation.
Creates a single partition of a table.
Operation: SORT
Option: CREATE INDEX
The SORT CREATE INDEX operation sorts rows when creating the index.
Option: GROUP BY NOSORT ROLLUP
The SORT GROUP BY NOSORT ROLLUP operation retrieves and groups rows using the rollup operator without sorting.
Option: GROUP BY STOPKEY
The SORT GROUP BY STOPKEY operation retrieves and groups rows while limiting the query to conditions defined by the stopkey.
Option: ORDER BY STOPKEY
In the SORT ORDER BY STOPKEY operation the results were sorted to support the ORDER BY STOPKEY clause.
Option: PARTITION JOIN
The SORT PARTITION JOIN operation sorts rows from different tables using a partition outer join operation.
Option: UNIQUE NOSORT
The SORT UNIQUE NOSORT operation retrieves only unique rows without sorting.
Option: UNIQUE STOPKEY
The SORT UNIQUE STOPKEY operation retrieves only unique rows while limiting the query to conditions defined by the stopkey.
Execution Plan image:
Aggregation operation.
SORT AGGREGATE is used to sort and aggregate result sets whenever a grouping function displays in a SQL statement without a GROUP BY clause. Grouping functions include MAX, MIN, COUNT, SUM, and AVG.
select SUM(Sales_Total)
from SALES;
SORT AGGREGATE
TABLE ACCESS FULL SALES
The Execution Plan shows that after the SALES table is scanned (via the TABLE ACCESS FULL operation), the records are passed to the SORT AGGREGATE operation. SORT AGGREGATE sums the Sales_Total values and returns the output to the user.
Using Subqueries that Return the Maximum Value
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Términos de uso Privacidad Cookie Preference Center