Sie sind auf Seite 1von 26

DATE

Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For

details, see Utilities.


For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.

Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition

Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function

For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight

-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For

details, see Utilities.


For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.

Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition

Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function

For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight

-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For

details, see Utilities.


For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.

Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition

Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function

For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight

-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For

details, see Utilities.


For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.

Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition

Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function

For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight

-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For

details, see Utilities.


For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.

Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition

Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function

For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight
-- ------DATE
Interval
To define an implicit cast for a UDT, use the CREATE CAST statement and specify
the AS
ASSIGNMENT clause. For more information on CREATE CAST, see SQL Data Definition
Language.
Implicit type conversion of UDTs for system operators and functions, including
REGR_AVGX, is a Teradata extension to the ANSI SQL standard. To disable this ext
ension, set
the DisableUDTImplCastForSysFuncOp field of the DBS Control Record to TRUE. For
details, see Utilities.
For more information on implicit type conversion of UDTs, see Chapter 17: Data Ty
pe
Conversions.
REGR_AVGX Window Function
For the REGR_AVGX window function that performs a group, cumulative, or moving
computation, see Window Aggregate Functions (AVG, CORR, COUNT, COVAR_POP,
COVAR_SAMP, MAX, MIN, REGR_AVGX, REGR_AVGY, REGR_COUNT,
REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY,
STDDEV_POP, STDDEV_SAMP, SUM, VAR_POP, VAR_SAMP) on page 320.
Example
This example is based the following regrtbl data. Nulls are indicated by the QUE
STION
MARK character.
c1 height weight

-- ------

Das könnte Ihnen auch gefallen