I have been posting in the theory and database structure formum, but i thought this ? might be better received here:
If I have a table for say, Sales_Items and there are different types of sales items, say food and clothing, is it okay to have fields that some items don't use?
ex.
TABLE:
tbl_SALES_ITEMS
FIELDS:
SALES_ITEM_ID (PK)
SALES_ITEM_NAME
SALES_ITEM_SIZE
SALES_ITEM_COLOR
If I have a sales item: Hamburger, it will get a null for SIZE and COLOR. This doesn't seems right. But in previous posts, people were suggesting that I keep all of my sales items together and not separate them into individual tables.
The problem with separating them is that, when I go to put them all together in a form were users pick a sales item for a receipt, it doesn't work very well. Sorry, I am babbling now.
The question is: Is it okay to have null values in a table like tbl_SALES as described above, or am I missing something?
Thanks in advance!
MR_G
If I have a table for say, Sales_Items and there are different types of sales items, say food and clothing, is it okay to have fields that some items don't use?
ex.
TABLE:
tbl_SALES_ITEMS
FIELDS:
SALES_ITEM_ID (PK)
SALES_ITEM_NAME
SALES_ITEM_SIZE
SALES_ITEM_COLOR
If I have a sales item: Hamburger, it will get a null for SIZE and COLOR. This doesn't seems right. But in previous posts, people were suggesting that I keep all of my sales items together and not separate them into individual tables.
The problem with separating them is that, when I go to put them all together in a form were users pick a sales item for a receipt, it doesn't work very well. Sorry, I am babbling now.
The question is: Is it okay to have null values in a table like tbl_SALES as described above, or am I missing something?
Thanks in advance!
MR_G