Example: Using Concatenation to Create More Readable Results - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Literals, spaces, and the TITLE phrase can be included in the operation definition to format the result heading and improve readability.

For example, the following definition returns side titles, evenly spaced result strings, and a blank heading.

   SELECT ('Gender ' || gender ||', Marital Status ' || mstat)(TITLE ' ')
   FROM Employee ;
   
   Gender M, Marital Status S 
   Gender F, Marital Status M 
   Gender M, Marital Status M 
   Gender F, Marital Status M 
   Gender F, Marital Status M 
   Gender M, Marital Status M 
   Gender F, Marital Status W
      ...