Jump to content

general DB mysql php help


adzie

Recommended Posts

Hi peeps,

 

Still learning this very slowly I might add!.

 

The problem I have

 

I have two Databases as an example

 

table 1

id

a

name

hours

d

 

table 2

id

1

name

hours

4

 

I have created a query for table a which sums up all the numbers in table 1c and displays them by table 1a

 

Now I want to take that information and update table 2,2 column by table 2,1 (as an ID being the same as table 1a)

Link to comment
https://forums.phpfreaks.com/topic/48669-general-db-mysql-php-help/
Share on other sites

I've attached a quick idea of the tables I have.

 

The Key field in each Table is VID as that is the members Identity.

 

In Table A I have multiple Rows for each member, I Am looking to total the time for each member by the VID.

 

Then extract that query totalling by VID column and insert into table B again by against each member number

 

 

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.