GIDForums  

Go Back   GIDForums > Computer Programming Forums > Miscellaneous Programming Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Sep-2006, 01:15
Ronpaul Ronpaul is offline
New Member
 
Join Date: Aug 2006
Location: sutton surrey
Posts: 3
Ronpaul is on a distinguished road

adding tables


I have two tables. the rows and columns are labeled the same but the contents are different. What is the simplest way to add the two tables together

Ron
  #2  
Old 05-Sep-2006, 01:57
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,373
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: adding tables


Look up the math definition of matrix addition and code the steps. It'll probably take 2 loops, and outer loop for the rows, and inner loop for the cols, or vice versa.
__________________

The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
  #3  
Old 05-Sep-2006, 10:11
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,233
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: adding tables


Do you want to add (sum) the 'cell by cell' contents of the tables [as per Walt's suggestion], or...

are you looking to combine the information from both tables? Like with a query, or append the data from one table to the other?
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #4  
Old 05-Sep-2006, 10:16
Ronpaul Ronpaul is offline
New Member
 
Join Date: Aug 2006
Location: sutton surrey
Posts: 3
Ronpaul is on a distinguished road

Re: adding tables


Thanks for your help
 
 

Recent GIDBlogProblems with the Navy (Enlisted) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
passing tables as arguments to functions. kobi_hikri C Programming Language 8 27-Jul-2005 07:29
Pulldown menu with data from 2 tables or 1 with an ENUM choice? mytwocents MySQL / PHP Forum 1 10-Aug-2004 16:30
DELETE all INFO from Different tables eRIC MySQL / PHP Forum 1 01-Jun-2004 06:19
Selecting from 2 tables at the same time soviet MySQL / PHP Forum 2 07-Nov-2003 23:15

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 10:42.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.