MrPink1138
Programmer
I'm building a database and some ASP pages to serve press releases for a website. I'd like to categorize each release so, for example, I can have a main page that lists them all... and on specific pages throughout the site I can pull out relevant press releases, ie: on my pages about apples i can pull out only the press releases that relate to apples... on the oranges page, only the ones that relate to oranges, etc, etc.
It is important that a press release can be flagged for multiple categories
I have about 40 categories. My question is what would be the most optimized way to do this in SQL2000? I know I can add bit fields for each category and use WHERE apple=1 but would there be any performance issues with having 40 bit fields in my table?
I've also thought about having a varchar filed called categories and storing a 40 character string like 0001010001010000001010000... which would store all the flags for the categories and then parsing it in my ASP code or with some fancy SQL.
Does anyone have any opinions on which method would be most efficient? Any information would be appreciated.
Thanks,
J
It is important that a press release can be flagged for multiple categories
I have about 40 categories. My question is what would be the most optimized way to do this in SQL2000? I know I can add bit fields for each category and use WHERE apple=1 but would there be any performance issues with having 40 bit fields in my table?
I've also thought about having a varchar filed called categories and storing a 40 character string like 0001010001010000001010000... which would store all the flags for the categories and then parsing it in my ASP code or with some fancy SQL.
Does anyone have any opinions on which method would be most efficient? Any information would be appreciated.
Thanks,
J