Database Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesDatabase Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 30th, 2006, 02:19 PM
beau beau is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 6 beau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 31 m 54 sec
Reputation Power: 0
Consolodating a tables records into one line?

I am receiving a data dump that has one record for every transaction made in an accounting system. I am trying to take LIKE Doc numbers and consolodating the informatoin into one line. See example below:


Original Dump structure (the slashes are just to format it on this post.):

Doc#-----SX-----VT-----TY-----CODE
100--------1------3------4-------810
200--------1------6------5-------710
100--------6------4------2-------710
200--------2------7------5-------810

I want it to look like this:

Doc#--SX1--SX2--VT1--VT2--TY1--TY2--CODE1--CODE2
100-----1----6-----3----4-----4-----2----810-----710
200-----1----2-----6----7-----5-----5----710-----810

Is this possible and what is the code for it? If somebody can suggest something, it would be greatly appreciated.

Thank you.

Last edited by beau : August 30th, 2006 at 02:27 PM. Reason: Typo

Reply With Quote
  #2  
Old August 31st, 2006, 07:56 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
I don't think it's a good idea to have it all in one row... Database normalization helps keep your data clean and less-redundant. Your requirements might include displaying all the data on one screen, but that doesn't necessarily mean the database needs to be kept that way. That's the beauty of relational databases.
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter!
DevArticles Forum Moderator

"The net is a waste of time, and that's exactly what's right about it." -- William Gibson

Reply With Quote
  #3  
Old August 31st, 2006, 03:44 PM
beau beau is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 6 beau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 31 m 54 sec
Reputation Power: 0
Get all DOC info into one Form

If I shouldn't consolodate the table, how do you suggest I get all of the Doc specific information into one form? I absolutely need the data of each Doc# to go to one form in one individual record so that I can do a basic accounting scorecard on the data. Any suggestions?

V/r

Beau

Reply With Quote
  #4  
Old September 1st, 2006, 09:09 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
What's a form? are you talking about Access? Web page? C++ screen?

I'm sure there are ways in any programming language to pull in data from a variety of places and present them in ways that suit your needs... this is different for all programming platforms though and I'm afraid I might not be able to offer specific advise

Reply With Quote
  #5  
Old September 1st, 2006, 04:24 PM
beau beau is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 6 beau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 31 m 54 sec
Reputation Power: 0
Access. I am looking for that language. Thanks for your help anyway.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesDatabase Development > Consolodatin


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway