I need help in figuring out the solution for my problem.
1. I have a 4 tables
a. CLientdetails
b. ClientAccountDetails
c. ClientExistingData
d. ClientNotExistindata.
Clinet details contains data related to the name of the client, startingdate, endingDate
ClientAccountDetails contains data related to specific client(ie multiple accounts asscoiated with his name, status of the account, money)
using SSIS package i import data from Excel sheet(data related to excel sheet is of ClientAccountDetails) into a different table called IMPORTClientDetails.
when all the data gets imported to the table using ssis package. i would write some query to move that into the ClientAccountDetails table based on the Name of the Client.
2. My question is
If the Client name from IMPORTClientDetails doesnot exist in the ClientDetails table i want the data to be moved to ClientNotExistindata
if the Client name from IMPORTClientDetails exist then i want to move that into ClientAccountDetails
This can be done with two simple INSERT/SELECT statements.