- Read set of files from local folder one by one. The files have the fields "Email" and "Name".
- Transfer the data from txt file to a table called "User_Info".
This table having this field structure
Slno, Email(PK), Name, Domain, CRTD_BY, CRTD_DT, LST_UPD_BY, LST_UPD_DT
While transferring data considering the mapping
Slno -> Autogenerate
Email -> From txt file
Name - From txt file
Domain -> Derive from Email field.
CRTD_BY -> Package Name
CRTD_DT -> PackageStartDate
LST_UPD_BY -> Package Name
LST_UPD_DT -> PackageStartDate
- Check the following conditions before transferring the data to
User_Info table
- Remove duplicate records based on EMAIL field in the source.
- Check if the Email Address from source is already added in the table. If the record is already not present in the table then insert the record. If the record is already present then update the fields Name, LST_UPD_BY and LST_UPD_DT.