joelwenzel
Programmer
- Jun 28, 2002
- 448
I have a data base that has many columns. Basically, there are 36 data columns. However, in some rows, as few as only 10 columns will contain data (the others will be null). Most of the time, only 15 to 20 of the rows will contain data. The columns are of datatype tinyint(3) so i don't think they take up a whole lot of memory. Also, the table will eventually take up millions and millions of rows.
So, should I keep the table designed with many many blank columns or should I be looking at something else?
I was thinking on other possiblity was to hve a table that contains 10 columns (for data) and then join rows in that table to ones in my main table (via a view)...but all those joins seem like they could be expensive.
So, should I keep the table designed with many many blank columns or should I be looking at something else?
I was thinking on other possiblity was to hve a table that contains 10 columns (for data) and then join rows in that table to ones in my main table (via a view)...but all those joins seem like they could be expensive.