x

How to create a dummy column to contain a name based on a number of checkbox values

I have a table containing a number of columns relating to check boxes on a form. For example these check box values correspond to ice cream flavours so each time a flavour is checked on the form, a 1 is stored under the flavour in the table. I need to create a dummy column that will store the ice cream flavour based around a case statement that will say, if checkbox.vanilla = 1, then place the word vanilla under the flavours (dummy column).
more ▼

asked Aug 07, 2012 at 03:03 PM in Default

reddevil87 gravatar image

reddevil87
0 1 1 1

(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x18

asked: Aug 07, 2012 at 03:03 PM

Seen: 736 times

Last Updated: Aug 07, 2012 at 03:03 PM