J
Janaka
I'm designing a table which has a foreign key field which may be nullable.
This is the only field in the table that may be NULL and I prefer to use a
default value instead if that's possible.
The field is an int so I was thinking of making a default value of 0. In my
sql statements I would use a LEFT JOIN on the associated table and then use
ISNULL() on any joined columns.
Is this a good design approach or should I stick with making it NULL?
This is the only field in the table that may be NULL and I prefer to use a
default value instead if that's possible.
The field is an int so I was thinking of making a default value of 0. In my
sql statements I would use a LEFT JOIN on the associated table and then use
ISNULL() on any joined columns.
Is this a good design approach or should I stick with making it NULL?