Hi everyone,
I am trying to merge together two databases.
The good database looks like this:
----------------------------------
tbl_CatchmentsCSL:
UID
CatchmentArea
...
tbl_Physiography:
UID
Region
Area (the area that particular region takes up within that particular catchment)
----------------------------------
I am trying to add data to these tables, tbl_catchmentsCSL is fine.
The new tbl_Physiography data differ in that "Area" is represented by a percentage of total catchment area, rather than a raw number.
I decided to convert this percentage to a raw number based on the total catchment area. So tbl_Physiography.Area was populated with tbl_catchmentsCSL.CatchmentArea/100 * percent.
If I run a query ((tbl_Physiography.RegionArea/tbl_CatchmentsCSL.CatchmentArea)*100) on these data to calculate the percentage of each region within a catchment based on the raw area, then the totals will add up to 100% for each catchment.
If, however, I calculate the sum of all the region areas (sum of tbl_Physiography.RegionArea grouped by UID) that number will NOT be equal to the total catchment area.
Can anyone suggest what may be going on here, and how to correctly convert from percentage to raw number?
Thanks,