Hello Ashish Adhikari,
Welcome to the Microsoft Q&A forum.
You can follow the below steps to transfer the data from the JSON file in the Blob container to an SQL database with the given mapping in Azure Data Factory with Data Flows:
Create a new pipeline in Azure Data Factory and add a new Data Flow activity to it.
- In the Data Flow, add a Source transformation and configure it to read the JSON file from the Blob container.
Add a Flatten transformation (since your JSON has nested structure) after the Source transformation and select the "University" field. Choose the "Flatten by Name" option to break out the nested fields into separate columns.
Add a Derived Column transformation and create new columns for the fields that need to be mapped to the studentInfo, courseInfo, and universityInfo tables. For example, create a new column called "StudentName" and set its value to the "Name" field from the JSON payload.
Add a Sink transformation for each of the tables (studentInfo, courseInfo, and universityInfo) and configure them to write the data to the corresponding tables in the SQL database. Map the columns from the Derived Column transformation to the appropriate columns in the tables.
Connect the transformations in the Data Flow
Save and publish the pipeline.
I hope this helps. Please let me know if you have any further questions.