Hello,
I have a table called sections that has an id and nine checkboxes (bit fields.) Either 1 or 9 could be = true. I need to return a record with an id and if the checkbox is true then the name of that field. Example:
from this:
id1, section1, section2 (both checkboxes turned on)
id2, section (one checkbox turned on)
to:
id1, section1
id1, section2
id2, section1
Any ideas for the best way to handle this?
Thanks
I have a table called sections that has an id and nine checkboxes (bit fields.) Either 1 or 9 could be = true. I need to return a record with an id and if the checkbox is true then the name of that field. Example:
from this:
id1, section1, section2 (both checkboxes turned on)
id2, section (one checkbox turned on)
to:
id1, section1
id1, section2
id2, section1
Any ideas for the best way to handle this?
Thanks