Index rows are ordered on each AMP by a single value- or hash-ordered column.
- If you specify ORDER BY, then you must also specify column_name_2.
- If you do not specify ORDER BY, Teradata Database orders rows by the hash value of all the columns in the column_name list.
- VALUES
- Value-ordering for the ORDER BY column.
- HASH
- Hash-ordering for the ORDER BY column.
- column_name_2
- A single column from the column list defined by column_name that specifies the sort order to be used for either HASH or VALUES.