17.00 - 17.05 - Example: Concatenating Last Name With First Name - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
17.05
Published
June 2020
Language
English (United States)
Last Update
2021-01-30
dita:mapPath
tpt1555966086716.ditamap
dita:ditavalPath
lze1555437562152.ditaval

Change the SELECT and the separator to obtain last and first names:

   SELECT lname||', '||fname 
   FROM names 
   ORDER BY lname;

The result is:

   ((lname||', ')||fname) 
   ----------------------
   Brown, Alan 
   Kanieski, Carol 
   Ryan, Loretta 
   Villegas, Arnando