J
jw
Thank you for all your answers. Here is more info.
I am transforming data originally entered (and analyzed)
in Excel. DBH is the diameter at breast height of a
tree. For each plot and tree species, the excel
spreadsheet had a column for each DBH, ie DBH1,
DBH2...DBH162.
I imported the spreadsheet to Access and did a
normalizing union query to reformat the DBH fields into
two fields as follows
TbhDBH
DBHNum (number)
DBhValue
Example SQL follows:
Select "2003" as [Year], [Plot], [Transect],
[Species], "130" as [DBHNum], [DBH130] as [DBHValue]
From ReformatP2
Where [DBH130] is not null
Union Select "2003" as [Year], [Plot], [Transect],
[Species], "131" as [DBHNum], [DBH131] as [DBHValue]
From ReformatP2
Where [DBH131] is not null
I have had success analyzing data with this table design
in similar databases. I learned from this newsgroup
that "fields are expensive, and records are cheap." I
think it is the number of "Union selects" I use in the
query because I don't seem to be able to get more than
about 40 in the query, even when the number of records in
the destination table is quite low.
Please let me know if I am doing anything that does not
seem logical! Thanks!
I am transforming data originally entered (and analyzed)
in Excel. DBH is the diameter at breast height of a
tree. For each plot and tree species, the excel
spreadsheet had a column for each DBH, ie DBH1,
DBH2...DBH162.
I imported the spreadsheet to Access and did a
normalizing union query to reformat the DBH fields into
two fields as follows
TbhDBH
DBHNum (number)
DBhValue
Example SQL follows:
Select "2003" as [Year], [Plot], [Transect],
[Species], "130" as [DBHNum], [DBH130] as [DBHValue]
From ReformatP2
Where [DBH130] is not null
Union Select "2003" as [Year], [Plot], [Transect],
[Species], "131" as [DBHNum], [DBH131] as [DBHValue]
From ReformatP2
Where [DBH131] is not null
I have had success analyzing data with this table design
in similar databases. I learned from this newsgroup
that "fields are expensive, and records are cheap." I
think it is the number of "Union selects" I use in the
query because I don't seem to be able to get more than
about 40 in the query, even when the number of records in
the destination table is quite low.
Please let me know if I am doing anything that does not
seem logical! Thanks!