G
Guest
Hail all,
Suppose we have 2 tables (20 rows each) as follows:
Table a with Columns A, B and C and an Index
Table b with Columns A, B and C and an Index
Columns A & B contain numbers. A ranges from 1 to 50 while B ranges from 1
to 1000. Column C contains words.
Each record in Table A matches uniquely another record in Table B. At the
moment there is no link between the tables.
The question is how to link the 2 tables.
If we run a select query (per table) Grouping by A & B and Count the C's,
this count is identical to both tables. i.e. the data essentialy is the same.
So the query that i though of is Group by A & B and sort Alphabetically the
C's. Then copy one index to the other, thus linking the two tables.
But i can't make it happen..
any suggestions much appreciated.
Suppose we have 2 tables (20 rows each) as follows:
Table a with Columns A, B and C and an Index
Table b with Columns A, B and C and an Index
Columns A & B contain numbers. A ranges from 1 to 50 while B ranges from 1
to 1000. Column C contains words.
Each record in Table A matches uniquely another record in Table B. At the
moment there is no link between the tables.
The question is how to link the 2 tables.
If we run a select query (per table) Grouping by A & B and Count the C's,
this count is identical to both tables. i.e. the data essentialy is the same.
So the query that i though of is Group by A & B and sort Alphabetically the
C's. Then copy one index to the other, thus linking the two tables.
But i can't make it happen..
any suggestions much appreciated.