ALL - Teradata Database - Teradata Vantage NewSQL Engine

SQL Data Manipulation Language

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
fbo1512081269404.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™

ALL specifies that duplicate values are to be returned when an expression is processed.

ALL is the default option, except in query expressions using set operators, where ALL is an option, but not the default. For more information, see Teradata Vantage™ SQL Functions, Expressions, and Predicates, B035-1145.

Syntax Elements

ALL
All rows, including duplicates, are to be returned in the results of the expression list.
This is the default value.

ANSI Compliance

ALL is ANSI SQL:2011-compliant.

Example: Using ALL

In contrast to the second statement in Example: Simple Uses of DISTINCT, this statement returns the department number for every employee:

     SELECT ALL dept_no
     FROM employee;