I'm looking at moving some product specs into a database. Currently they are implemented in a text file in a sort of home-brewed XML. For instance if our product was socks, and we wanted to track the color through versions of that sock, it would look something like:
<SOCK ID>
<COLOR>
<VERSIONS>
<LOW_000_HIGH_103 "Yellow">
<LOW_114_HIGH_999 "Blue">
</VERSIONS>
</COLOR>
</SOCK ID>
Specs tend to be fairly stable, so there are long ranges of versions without change. So my question is how to best represent this is a data schema.
My thought is to create a table for the unique specs, and then a secondary many-to-one table matches each product ID and version # to the appropriate spec. Of course it would be nice if it matched a product and a range to spec, is that possible in SQL, or is there another schema that is better?
Edit: I found this solution which recommends a specified beginning and end range value as fields.