Below is the Sample Data
source table here
with the above data i need to create 3 tables having data as below;
Target tables
Even once the customer t