I think the gap in my understanding of relational database design is obvious. It is definitely an area I am struggling with. In terms of the tables in in question, I have a table, "SampleDate" with 12 fields that I want to join to 27 other tables named "element1",
"element2", "element3" etc that contain weather data.
The SampleDate table contain the following fields:
- ID, which is autonumbered, and indexed as "Yes (No Duplicates)"
- Climate ID, which as stated before is not a primary key, structured as "short text" data type and contains alphanumeric data, and indexed as "Yes (Duplicates OK)". Climate ID's represent a weather station and may be repeated because there are weather readings
for each date (i.e. weather readings from each day of a month for one weather station)
- Date, which is not a primary key, and structured, structured as "Date/Time" data type and displayed as long date, and indexed as "Yes (Duplicates OK)". Dates may be repeated as there can be readings from several weather stations on any given day.
Each of the weather tables contain the following fields:
- ID, which is autonumbered, and indexed as "Yes (No Duplicates)
- Climate ID, which as stated before is not a primary key, structured as "short text" data type and contains alphanumeric data, and indexed as "Yes (Duplicates OK)".
- Date, which is not a primary key, and structured, structured as "Date/Time" data type and displayed as long date, and indexed as "Yes (Duplicates OK)"
- weather parameter such as "Air Temp" (element 1), "Mean Wind Speed" (element 2), "Total Snowfall" (element 3) etc
What I am needing to do is join my master list of dates "SampleDates" to each element and draw out the pertinent weather data as it relates to climate ID and date.
As stated in my earlier post, when I attempt to build relationships to do this, I keep getting the message
"No unique index found for the referenced field of the primary table"