I need to save around 400 items of information on a database.
Something similar to the following (I have a few tables like this):
create table dbo.Details
(
Id int not null
ProductTypeIsBook bit not null,
ProductTypeIsFood bit not null,
ProductTypeIsCloth bit not null,
ProductTypeIsToy bit not null,
ProductTypeIsOther nvarchar (200) null,
ProductColorIsRed bit not null,
ProductColorIsGreen bit not null,
ProductColorIsYellow bit not null,
ProductColorIsOther nvarchar (200) null
)
So ProductType can have only one true or no trues. And Other can have value or not.
In case of ProductType can all be true and Other can be null or not ...
When having 400 columns like this in a few tables it is difficult to move everything to lookup tables ... I would end up with a lot of them the the joins by create problems with performance ...
What do you think about the solution I present here? Any suggestion?