IN/NOT IN Predicates | VantageCloud Lake - IN/NOT IN - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530
Tests the existence of the value of an expression or expression list in a comparable set in one of two ways:
  • Compares the value of an expression with values in an explicit list of literals.
  • Compares values in a list of expressions with values and in a set of corresponding expressions in a subquery.

ANSI Compliance

This statement is ANSI SQL:2011 compliant.

Using TO in a list of literals is a Teradata extension to the ANSI standard.

expression IN and NOT IN expression or literals