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

SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
vnq1596660420420.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™

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;