sql server dts:
Ok,
The good news, I've created 6 tables from a single input table source.
Each record of the input source had a primary key that was included in the 6
destination tables as a "foreign key".
Now I need to take the 6 tables and re-assemble them into the original table
format to be used as an interim data warehouse.
The bad news, 4 of the original destination tables have a "one to one"
relationship with the original input table. i.e. One record was created in
the 4 destination tables for each record in the original "input" table
record. Unfortunately, the other 2 original destination tables had a "one
to many" relationship with the original "input" table. i.e. one original
input record could create "1 to n" destination table records (i.e. the bad
news part).
Being relatively new to SSIS I'm a little uncertain of what SSIS tools I
could use to tackle this problem.
(01) 1st and easier problem . I need a control that can handle 6 inputs and
will allow me to select out all records from the six tables that have the
same primary key.
(02) 2nd not so easy problem . I need to assemble the data selected from the
6 input tables into a single output record.
(02a) the wl_well_analysis input table (one of the 2 many to one input
tables) could very well give me 6 records with "potable too little",
"potable salty", "potable muddy", "potable odor", "potable colored" or
"potable other" descriptions. These I need to translate into CHAR(1) value
columns in the output table . i.e.
potable_too_little char(1) Y/N
potable_salty char(1) Y/N
potable_muddy char(1) Y/N
potable_odor char(1) Y/N
potable_colored char(1) Y/N
potable_other varchar(30) Y/N
Interesting challenge . I expect that this may just be a little beyond SSIS's
limits
and that I might just have to limber up Visual Studio and C# to get this
done in a
timely manner.
However, if I can do this in SSIS I'd really like to know.
Thanks in advance!
Barry
in Oregon