G
Guest
I designed a normalized database for our research to house vegetation data
where one plot has many species records in it. In my database, these data
are stored in a one-to-many relationship where one plot has many species row
entries. Thus my datastructure looks like:
ID Plot ID# Date Species Field 3...
1 # Species 1 Species1 abundance, etc...
2 # Species 2 Species2 abundance, etc..
3 # Species3 Species3 abundance, etc...
Now i am faced with the task of merging this table structure with a
non-normalized table where each plot has one row and the 250 species! are
listed across the top each species in a separate column. Table structure is
like this:
ID Plot ID Date Species 1 Species 2 Species 3.... Species
250
1
2
3 ... on to plot 1000+
I keep track of plots by Plot ID # (primary key).
I cannot figure out how to combine these 2 tables. I have tried transposing
in EXCEL, various forms of crosstabs, but have not been able to get it to
work. I am not that advanced and have only read about union queries, but it
seems difficult to implement for 255 columns, but don't know even where to
start. any suggestions would be appreciated.
where one plot has many species records in it. In my database, these data
are stored in a one-to-many relationship where one plot has many species row
entries. Thus my datastructure looks like:
ID Plot ID# Date Species Field 3...
1 # Species 1 Species1 abundance, etc...
2 # Species 2 Species2 abundance, etc..
3 # Species3 Species3 abundance, etc...
Now i am faced with the task of merging this table structure with a
non-normalized table where each plot has one row and the 250 species! are
listed across the top each species in a separate column. Table structure is
like this:
ID Plot ID Date Species 1 Species 2 Species 3.... Species
250
1
2
3 ... on to plot 1000+
I keep track of plots by Plot ID # (primary key).
I cannot figure out how to combine these 2 tables. I have tried transposing
in EXCEL, various forms of crosstabs, but have not been able to get it to
work. I am not that advanced and have only read about union queries, but it
seems difficult to implement for 255 columns, but don't know even where to
start. any suggestions would be appreciated.