Have a look at fn_replinttobitstring and adjust it slightly into a where
clause?
Bern
"John H." <anonymous.RemoveThis@discussions.microsoft.com> wrote in message
news:01C4D01B-3245-4134-A675-B98222FD1642@microsoft.com...
> Hi everybody,
> can anyone suggest me a better sollution to the problem below if any
exists?
>
> Let's have a table of CARS. Each car can have a lot of properties -
electrical windows, automatic transmission, leather, ... almost 50 of them.
Each property can contain true/false value.
> I want to search for all cars that have for example 5 properties set to
true. Is there a better way than having one column per one property? An
array of bits...???
>
> Thanks,
> J.<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Table with a lot of properties columns