Hello all!
Sorry - for some reason the beginning of my thread is missing?
Should read..............
I have 2 tables, table1 and table2. They have the following structure:
table1 looks like:
ID1.............data
1.................data-1
2.................data-2
3.................data-3
etc
table2 looks like:
ID2..........data
a..............data-a1
a..............data-a2
a..............data-a3
b..............data-b1
b..............data-b2
b..............data-b3
c..............data-c1
c..............data-c2
etc
There are no common fields between the 2 tables.
Basically, what I need to do is to insert the id fields from table1 into table2 like this:
ID2...........ID1..........data
a..............1..............data-a1
a..............1..............data-a2
a..............1..............data-a3
b..............2..............data-b1
b..............2..............data-b2
b..............2..............data-b3
c..............3..............data-c1
c..............3..............data-c2
etc
I guess I need insert ID1 while ID2 is the same value as the previous row???
Else move on to the next instance of ID1 and repeat the cycle?
I can't do this, Please help!
Thanks in advance
Nick