I would like some viewpoints on the best way to handle situations where you have normal (traditional) database data and at the same time also have data that is more like "ini file" data and you want to maintain integrity between them (heirachical data?).
For example, suppose I have a "CURRENCY" table with 100 rows. At the same time I have a system setting for 'default currency' and this has to map to one of those 100 rows.
Right now I would store the default currency code in an XML config file, an ini file, or the Windows registry. This is fine for the data but its a bit of work to make sure that the values in the XML file do in fact correspond to valid foreign key values in the database.
How could this be done (declaratively?) in a database so that the heirachical data can reference and therefore have integrity with the relational data?