17.05 - Example: Ordering on Column Position - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1146-175K
Language
English (United States)

The following example substitutes the integer 3 for yrs_exp in the ORDER BY clause. The 3 refers to the left-to-right sequential numeric position of yrs_exp in the select expression list.

     SELECT name, jobtitle, yrs_exp
     FROM employee
     ORDER BY 3;