Say I have a query that returns values like this:
id type value
aaa 1a 10
aaa 1b 20
aaa 1c 7
bbb 2a 10
bbb 1a
There is a TD_UNPIVOT function which was added in TD 14.10 can be found in TD_SYSFNLIB.
TD_UNPIVOT Function
The PIVOT and UNPIVOT SQL commands were added in Teradata 16 and they can be found in the SQL Functions, Operators, Expressions, and Predicates manual. At this time, I can't find them in an online manual so you will need to download the PDF from Teradata.com.
New TD 16 Features PIVOT and UNPIVOT