Comparison Operators | VantageCloud Lake - Comparison Operators - 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
Comparison operators, which are types of logical predicates (also called conditional expressions), test the truth of relations between expressions.
  • IF, WHILE, REPEAT, and CASE statements in stored procedures
  • WHEN clauses in searched CASE expressions
  • WHERE, ON, and HAVING clauses to qualify or disqualify rows in a SELECT statement
  • CASE_N functions

ANSI Compliance

The following comparison operators are ANSI SQL:2011 compliant:
  • =
  • >
  • <
  • <>
  • <=
  • >=
The following comparison operators are Teradata extensions to the ANSI SQL:2011 standard.Their use is deprecated:
  • EQ
  • ^=
  • NE
  • NOT=
  • LT
  • LE
  • GT
  • GE