CREATE/REPLACE ORDERING SQL Statement | Teradata Vantage - 17.10 - CREATE ORDERING and REPLACE ORDERING - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

Creates or replaces a map ordering routine used to compare UDT values.

ANSI Compliance

CREATE ORDERING is ANSI SQL:2011-compliant.

REPLACE ORDERING is a Teradata extension to the ANSI SQL:2011 standard.

Required Privileges

You must have either the UDTTYPE or UDTMETHOD privilege on the SYSUDTLIB database.

If the map routine you specify is a UDF, then you must also have the EXECUTE FUNCTION privilege on the UDF, which must be contained within the SYSUDTLIB database.

Privileges Granted Automatically

None.