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


Please Help Members By Posting Answers For Below Questions

What happens when a node suffers a downfall?

762


Differentiate database data and data warehouse data?

679


Comment whether bottleneck is an error or not.

708


How will you solve the problem that occurs during update?

692


Can any one explain me the difference between BTEQ and MLOAD,TUMP. All canbe used for same purpose but still differnt methods. why ?

3138






Difference between multiload and tpump?

719


What is partitioned primary index (ppi)?

672


Explain the teradata primary index mechanics in detail with a diagram.

656


What is the multi-insert?

708


Describe primary index in teradata. And what are the available primary index types?

636


During the Display time, how is the sequence generated by Teradata?

699


How to run a query in teradata?

678


What are the main components of teradata system?

671


What are the commands to make a new table, change a table and remove a table in teradata?

715


Highlight the points of differences between the database and user in Teradata.

685