ALL - Teradata Database

SQL Data Manipulation Language

Product
Teradata Database
Release Number
16.10
Published
June 2017
Language
English (United States)
Last Update
2018-04-25
dita:mapPath
psg1480972718197.ditamap
dita:ditavalPath
changebar_rev_16_10_exclude_audience_ie.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata® Database

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. See SQL Functions, Operators, Expressions, and Predicates .

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;