Hi,
I was wondering what you guys do when required to add new fields to a table.
If the requirement is to make them mandatory (not null), what do you do about the exisitng data.
I know in my OU course academically they say create a new table with functional dependency, but, what if you are asked to add two new fields, then a week later another two, then another two.
do you really create three new tables all with just two fields in?
doesn't the DbSchema end up seriously messy with a tonne of tables requiring joins when being queried.
However if you add them to an exisiting table and they are required to be mandatory, what do you do about existing records that wouldn't have this data?
Your guidance is appreciated.
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music Download
I was wondering what you guys do when required to add new fields to a table.
If the requirement is to make them mandatory (not null), what do you do about the exisitng data.
I know in my OU course academically they say create a new table with functional dependency, but, what if you are asked to add two new fields, then a week later another two, then another two.
do you really create three new tables all with just two fields in?
doesn't the DbSchema end up seriously messy with a tonne of tables requiring joins when being queried.
However if you add them to an exisiting table and they are required to be mandatory, what do you do about existing records that wouldn't have this data?
Your guidance is appreciated.
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music Download