I'm not a DBA so I apologize for lack of knowledge. Here's my situation...Say I have several tables. Products, Customers, Vendors, etc.
Our application may have a help text for some of the data in those tables. Products may hold a column "SpecNumber" which needs to be in a specific format that may need a help text to display to the user, Customers table may hold another column, and so forth. Our application will need a way to maintain this list of help text so keeping it as one table with maybe ID, helpText, etc. May have other columns if we need to keep other information about the field in the future.
Now, how do I go about querying this help text? In an application where I display a list of products, for "SpecNumber", I want to show this text once on the form. So having a foreign key to HelpText table in Products table makes no sense.
Products table may have Id, Name, VendorId, MedicalCode. (sample data may be Id=1, Name='MedicineABC', VendorId=12 (foreignkey to vendor table), MedicalCode='123ABC3232') HelpText table may have Id, description.
Products -------- ID Name VendorID MedicalCode HelpText -------- ID Description
help_text_idinProductsthat points you to the correct record in theHelpTexttable.HelpTextonly stores an ID and text, so why not just create a new record for every place where you need it? – FrustratedWithFormsDesigner Feb 13 at 18:14