Hi
Just testing things really but would appreciate any feedback/thoughts.
In a table with say 10 million rows and 800 columns, is it best to try and reduce the number of columns if possible or is it fine to leave with that many.
To give an example, say three of the columns use tinyid data type and could be combined into one smallint column with no real hassles.
Obviously with the existing set-up, these columns can be queried at any stage individually or collectively, however it would also be easy to merge them and query with a longer IN statement.
I guess what Im asking is do you believe it is better to reduce the number of columns where easily done in favour of having longer IN statements in the query? Or is it best to have the data as collapsed as possible?
As an example, which (if any) is the recommended design
(collapsed qry) WHERE ID1=16 AND ID2=33 and ID3=7
(columns merged qry) WHERE ID IN (8,19,26,67,89,90,92,98,99,108,189 etc etc etc)
Appreciate any thoughts you may have
Thanks
Chris

