Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Parent and Child record insertion

This is a sample CSV. I need to insert Student and Subject in their respective master tables and Marks in the Child table. The table structure as follows.

 Input is like : 

 

Mark,CS,23
Mark,CE,25
Mark,DB,27
John,ACN,21
John,Maths,30
Tom,Physics,26


Please Note : Some master data is already inserted and some might be new and need to insert. Please suggest your views on this

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

 

     You will have to first store the Student and Subject tables as first stage. Since same data will be coming multiple times in transaction table, you will have to aggregate the data before loading the data to Student and Subject tables. Since same data is coming again, you will have to use Action on Data as "Insert or Update". In the schema, you will have to select the Key column also so that it will be used as the column for input/update

  

0683p000009M0np.png

 

0683p000009M0nz.png

 

 0683p000009M0o9.png

0683p000009M0oE.png

 

 

If the answer has helped to resolve your query, could you please mark the topic as closed? Kudos are also welcome 🙂

 

Warm Regards,

 

Nikhil Thampi

 

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi,

 

     You will have to first store the Student and Subject tables as first stage. Since same data will be coming multiple times in transaction table, you will have to aggregate the data before loading the data to Student and Subject tables. Since same data is coming again, you will have to use Action on Data as "Insert or Update". In the schema, you will have to select the Key column also so that it will be used as the column for input/update

  

0683p000009M0np.png

 

0683p000009M0nz.png

 

 0683p000009M0o9.png

0683p000009M0oE.png

 

 

If the answer has helped to resolve your query, could you please mark the topic as closed? Kudos are also welcome 🙂

 

Warm Regards,

 

Nikhil Thampi

 

Anonymous
Not applicable
Author

Thanks @nthampi for your response, i would try this but does it maintain the same transaction for master and detail data?

Anonymous
Not applicable
Author

Absolutely! This is a classic way of storing the data in normalized way where we are first storing the master tables and use the keys from master table to store the data in transaction table.

 

Could you please mark the topic as resolved if the answer has helped you. Kudos are also welcome 0683p000009MACn.png

 

Warm Regards,

 

Nikhil Thampi