Example: a database containing the names and properties of different metals (density, colour, melting point etc.) where I might have found the value for the density from one source (website, book, …) and the melting point from another and I want to make it retrievable from which source any given value came.
The simple solution is to create a column ‘Density’ and a column ‘Density Source’ and so on for all properties but this seems like a very verbose way of solving this. Yes, ‘Density Source’ could be a simple integer with another table spelling out the source.
In a sense, I am looking to add something like a footnote to a field.
The tough answer is that you’re not going to get anywhere with anything less verbose than have a
sourcetable and then having a link back to each source for each bit of information.What you can do is create the matrix of possible sources for your density, color, melting point, etc. and then assign a universal “SourceKey” for that, so that you would only have to store one source on the actual property table. Then, to get the density source, you’d do this:
That completely depends on how many combinations you can have and whether or not that’s efficient at all, though. The database stores relations, but it doesn’t store lineage.