HOW DO I ? ? ? ?
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


HOW DO I ? ? ? ? Expand / Collapse
Author
Message
Posted 6/1/2006 3:48:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/30/2007 2:32:00 AM
Posts: 2, Visits: 1
Hi Guys,

I need help with the following please;

I’ve got a table that looks like this,

ID NO NAME MAKE YEAR
1 John Blue 2000
1 John Blue 2001
1 John Blue 2003
2 Mary Black 1999
2 Mary Black 2001
3 Gerry Silver 2002
3 Gerry Silver 2003
3 Gerry Silver 2004
3 Gerry Silver 2005

The output must be like the following

ID NO NAME MAKE YEAR
1 John Blue 2000,2001,2003
2 Mary Black 1999,2001
3 Gerry Silver 2002.2003,2004,2005

Any help would be appreciated

Many thanks
Dan
Post #4284
Posted 6/11/2006 7:07:02 AM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 7/22/2008 3:48:36 AM
Posts: 173, Visits: 5
Look at how to pivot a table (in your case, rows to columns) in the answer from Dieter at:

http://www.teradata.com/teradataForum/shwmessage.aspx?forumid=10&messageid=1285
Post #4349
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 3:11am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 7 queries. Compression Disabled.