What I like to do with all my dimension tables (i.e. lookup tables or your "child" tables) is to create a dummy row, which I always populate when the table is created with a value of -1.
Then, whenever you have no real value to enter, put -1 instead of NULL. It is also very helpful...
Hi VJ,
That is exactly what I have to do, but it isn't a dynamic occurs, in that you have to allow for upto x phone numbers.
It would be far more efficient if one could loop until you reach the end of the relevent data i.e. start at the beginning of the string and loop until you know there is...
Lets say you have an input file with a field of comma delimited phone numbers - you don't know how many there will be per record.
In the target database, you want one record per phone number.
In 'C' for example, you could do a while loop and insert one record per phone number as you traverse...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.