Example: Concatenating Last Name With First Name

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

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1145-162K

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