Yes sorry I don’t think I was that clear!
Basically we have two tables: account_stage and account_live. The
contractors set up an index on account_live, which had a unique
constraint batch_number and sequence_number. The company that sends us
information is no longer able to ensure this uniqueness. I have found
another combination in the existing account_live table (ie Rreg_number
and year_code) this is unique. I have therefore changed the account_live
table to the latter index.
We get two files from this outside company, which is poured, into the
account_stage table. The first file being a daily file the second a
monthly. The monthly is a ‘catch-all’ and would include most of the
information the daily files would have (and fill in the holes missed).
I want to ensure that both the daily and monthly load their information.
The monthly may/will have the same reg_number and year_code which match
some daily files already in the account_live table.
I just want to be able to load the monthly with just those missing
items. Is this feasible?
Many thanks
Sam
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!