SQL Basics

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsDatabasesSQL Basics

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old November 13th, 2012, 04:37 PM
tjbarr63 tjbarr63 is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 tjbarr63 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 48 sec
Reputation Power: 0
Rows to Columns

ID Acct
39425 Fund1
39425 Fund2
39425 Fund3
39425 Fund4
33256 Fund3
33256 Fund4


Here is a result of a database with 2 columns. Anyone know of a code that will put all the data in one row by ID?

e.g.
ID Acct Acct2 Acct3 Acct4
39425 Fund1 Fund2 Fund3 Fund4
33256 Fund3 Fund4

Reply With Quote
  #2  
Old November 25th, 2012, 09:35 AM
mickylove mickylove is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 1 mickylove User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 6 sec
Reputation Power: 0
Quote:
Originally Posted by tjbarr63
ID Acct
39425 Fund1
39425 Fund2
39425 Fund3
39425 Fund4
33256 Fund3
33256 Fund4


Here is a result of a database with 2 columns. Anyone know of a code that will put all the data in one row by ID?

e.g.
ID Acct Acct2 Acct3 Acct4
39425 Fund1 Fund2 Fund3 Fund4
33256 Fund3 Fund4


Did you ever manage to solve this one, I am having the exact same problem. My problem may have different lengths to the Acct fields for example

ID ACCTs

1 4234 4235 4236
2 4237 4238
3 4329 4239 4240 4241

Can anyone please help with this?

Last edited by mickylove : November 25th, 2012 at 09:37 AM.

Reply With Quote
  #3  
Old November 30th, 2012, 09:49 AM
tjbarr63 tjbarr63 is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 tjbarr63 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 48 sec
Reputation Power: 0
Sorry not really. I ended up putting it to excel and doing steps to fix it. However I am still tying so will post if/when I figure it out.

Reply With Quote
Reply

Viewing: Tutorialized ForumsDatabasesSQL Basics > Rows to Columns


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap