Scenario:
I have some
MAIN_TABLE1
MAIN_TABLE2
these main tables are in relational schema.
Now, I need to move the data from this relational schema to some other flat tables:
flat_Parent_Table
flat_Child_Table1
flat_Child_Table2
flat_GrandChild1
flat_GrandChild2
Now one record from MAIN_TABLE1 goes to multiple flat tables. Now what should be the logic here to move the data in these flat tables and create a relational schema on these flat table.