You are on page 1of 45

Format and Title

The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.

The title is INTERVAL(period _expression) interval_qualifier.


Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.

If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva

l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre

cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,

2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f


or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that

cannot fit into a DAY(2) interval qualifier, an error is reported.


If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH

Format and Title


The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.

The title is INTERVAL(period _expression) interval_qualifier.


Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.

If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva

l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre

cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,

2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f


or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that

cannot fit into a DAY(2) interval qualifier, an error is reported.


If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH

Format and Title


The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.

The title is INTERVAL(period _expression) interval_qualifier.


Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.

If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva

l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre

cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,

2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f


or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that

cannot fit into a DAY(2) interval qualifier, an error is reported.


If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH

Format and Title


The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.

The title is INTERVAL(period _expression) interval_qualifier.


Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.

If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva

l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre

cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,

2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f


or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that

cannot fit into a DAY(2) interval qualifier, an error is reported.


If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH

Format and Title


The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.

The title is INTERVAL(period _expression) interval_qualifier.


Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.

If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva

l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre

cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,

2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f


or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that

cannot fit into a DAY(2) interval qualifier, an error is reported.


If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH

Format and Title


The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.

The title is INTERVAL(period _expression) interval_qualifier.


Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.

If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva

l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre

cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,

2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f


or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that

cannot fit into a DAY(2) interval qualifier, an error is reported.


If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH

Format and Title


The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.

The title is INTERVAL(period _expression) interval_qualifier.


Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.

If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH
Format and Title
The format is the default format for the interval data type corresponding to the
specified
interval qualifier.
The title is INTERVAL(period _expression) interval_qualifier.
Error Conditions
An error may be reported:
If the argument of the INTERVAL function does not have a Period data type.
If the argument has a PERIOD(DATE) data type and the interval qualifier is not Y
EAR,
YEAR TO MONTH, MONTH, or DAY.
If the argument has a PERIOD(TIME(n) [WITH TIME ZONE]) data type and the interva
l
qualifier is not HOUR, HOUR TO MINUTE, HOUR TO SECOND, MINUTE, MINUTE
TO SECOND or SECOND.
If the result of an INTERVAL expression violates the rules specified for the pre
cision of an
interval qualifier, an existing error is reported. For example, assume p1 is a
PERIOD(TIMESTAMP(0)) expression that has a value of PERIOD '(2006-01-01 12:12:12
,
2007-01-01 12:12:12)'. If INTERVAL(p1) DAY is specified, the default precision f
or the
DAY interval qualifier is 2, and, since the result is 365 days which is a three
digit value that
cannot fit into a DAY(2) interval qualifier, an error is reported.
If the argument of the INTERVAL function is a period of element type DATE or
TIMESTAMP(n) [WITH

You might also like