I am working with a what I feel is a poorly designed database. A typical record has a productID and then seven different colors. Each color is a text field with a value of "Yes" or "No". I am trying to write a query that given the ID number, will return only the fields from that record with a "Yes" value. Not sure this can be done. Visually, it would be something like:
SELECT ALL FIELD that equal 'Yes" FROM MyTable WHERE ProductID=1
Any chance something like this can be done? Once I get the SQL, then I want to write out the form field name, instead of the value so I get a list of colors available for a particular productID.
SELECT ALL FIELD that equal 'Yes" FROM MyTable WHERE ProductID=1
Any chance something like this can be done? Once I get the SQL, then I want to write out the form field name, instead of the value so I get a list of colors available for a particular productID.