NEXT_DAY Syntax - Analytics Database - Teradata Vantage

SQL Date and Time Functions and Expressions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
cpk1628111786971.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
pxz1544241488545
lifecycle
latest
Product Category
Teradata Vantageā„¢
[TD_SYSFNLIB.] NEXT_DAY ( date_timestamp_value, day_value )

Syntax Elements

TD_SYSFNLIB.
Name of the database where the function is located.
date_timestamp_value
A date or timestamp argument.
day_value

A character argument.

day_value can be any day of the week or its 3-character abbreviation.

Valid values are:
  • 'SUNDAY' or 'SUN'
  • 'MONDAY' or 'MON'
  • 'TUESDAY' or 'TUE'
  • 'WEDNESDAY' or 'WED'
  • 'THURSDAY' or 'THU'
  • 'FRIDAY' or 'FRI'
  • 'SATURDAY' or 'SAT'

The day of week is not case-sensitive. Any characters that follow a valid abbreviation are ignored.

If this syntax element is NULL, NULL is returned.

While all systems are shipped supporting only the preceding English values for day_value, the Database Administrator can extend valid values to properly handle localized day names by including them in the ShortDays or LongDays of the Specification for Data Formatting (SDF) file supplied to the tdlocaledef utility.