G
George
Dear friends,
Happy New Year to all of you.
Here is my big problem:
I have developed a relational database using access 2003 with the following
structure:
-T_Polygons (PolygonID – text 6 – Primary key)
-T_Data1 (PolygonID and SpeciesID – Primary keys)
-T_Data2 (PolygonID and SpeciesID – Primary keys)
-T_Data3 (PolygonID and SpeciesID – Primary keys)
As you realize, each Polygon has several records to the other related tables.
I want to run a query (perhaps) and give me as column A the polygon ID and
the following columns (0-38 for each related table, or just the 3 first
records) to be the related records of the other 3 tables.
The result should be something like (in columns and not in rows):
PolygonID A12345
Species1FromTable1 = SpeciesA
Species2FromTable1 = SpeciesB
Species2FromTable1 = SpeciesC
Species1FromTable2 = SpeciesA
Species2FromTable2 = SpeciesB
Species2FromTable2 = SpeciesC
Species1FromTable3 = SpeciesA
Species2FromTable3 = SpeciesB
Species2FromTable3 = SpeciesC
Then I will use concatenation in order to concatenate all the above in a
single field.
Thanking you in advance,
GeorgeCY
Happy New Year to all of you.
Here is my big problem:
I have developed a relational database using access 2003 with the following
structure:
-T_Polygons (PolygonID – text 6 – Primary key)
-T_Data1 (PolygonID and SpeciesID – Primary keys)
-T_Data2 (PolygonID and SpeciesID – Primary keys)
-T_Data3 (PolygonID and SpeciesID – Primary keys)
As you realize, each Polygon has several records to the other related tables.
I want to run a query (perhaps) and give me as column A the polygon ID and
the following columns (0-38 for each related table, or just the 3 first
records) to be the related records of the other 3 tables.
The result should be something like (in columns and not in rows):
PolygonID A12345
Species1FromTable1 = SpeciesA
Species2FromTable1 = SpeciesB
Species2FromTable1 = SpeciesC
Species1FromTable2 = SpeciesA
Species2FromTable2 = SpeciesB
Species2FromTable2 = SpeciesC
Species1FromTable3 = SpeciesA
Species2FromTable3 = SpeciesB
Species2FromTable3 = SpeciesC
Then I will use concatenation in order to concatenate all the above in a
single field.
Thanking you in advance,
GeorgeCY