Usage Notes - Teradata Database

SQL Data Manipulation Language

Product
Teradata Database
Release Number
15.10
Language
English (United States)
Last Update
2018-10-06
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata® Database

DISTINCT and GROUP BY

For cases when the DISTINCT is semantically equivalent to GROUP BY, the optimizer makes a cost‑based decision to eliminate duplicates either by way of a combined sort and duplicate elimination or an aggregation step.