Result of Splitting Report Lines | Vertical Presentation | Basic Teradata Query - Vertical Presentation - Basic Teradata Query

Basic Teradata® Query Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Basic Teradata Query
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2025-04-02
dita:mapPath
gxl1691484661681.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
psp1479308573013
Product Category
Teradata Tools and Utilities

Use the BTEQ FOLDLINE command to break each row of output data into two or more rows in the report. Using the FOLDLINE ON ALL form of the command effectively changes the format of the report from horizontal to vertical by reporting each column value on a new line.

Add a FOLDLINE command to the previous example to reformat the report as shown in the following example report:

.SET FOLDLINE ON ALL
SELECT Name, JobTitle, Sex
FROM Employee WHERE DeptNo = 300;

Example report:

Name     
------------ 
        JobTitle
        ------------
         Sex
         --- 
Russell S
        President
         M
Phan A
        Vice Pres
         F
Leidner P
        Secretary
         F

To reposition the column headings to the left of the rows, use the BTEQ SIDETITLES command .