CREATE/REPLACE ORDERING SQL Statement | Teradata Vantage - CREATE ORDERING and REPLACE ORDERING - Teradata Vantage - Analytics Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-22
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantageā„¢

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.