Hello Frndz,
I have a table named product as shown below:
product_id product_name
1 AAA
1 BBB
1 CCC
2 PPP
2 QQQ
2 RRR
Now my output should be:
product_id product_name_1 product_name_2 product_name_3
1 AAA BBB CCC
2 PPP QQQ RRR
Answer Posted / yuvaevergreen
Hi,
Since the no of output columns is a variable, I think we
may have to write a SP or macro to get the desired output.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of having index on table?
Explain Teradata performance tuning and optimization?
What is called partitioned primary index (ppi)?
What is collect statistics?
Give the sizes of SMALLINT, BYTEINT and INTEGER.
Define views in teradata with general syntax.
What do you mean by teradata sql assistant?
Is multi insert ansi standard?
Can we have two time dimensions in a schema(either star or snow flake)? For ex if we want joining date of employee and if we want today's sales with time whether can we have two time dimensions for accommodating above tasks?
What are the frequently used data types in teradata?
How can you track login parameters of users in teradata?
What is a sparse index?
How do you set the session mode parameters in bteq?
How does hashing happens in teradata?
How do you determine the number of sessions?