Skip to content

Commit acf99b5

Browse files
authored
Update how-to-sqldb-to-cosmosdb.md
1 parent dce0e66 commit acf99b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/data-factory/how-to-sqldb-to-cosmosdb.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ The resulting CosmosDB container will embed the inner query into a single docume
5757

5858
7. On the top source, add a Derived Column transformation after "SourceOrderDetails". Call the new transformation "TypeCast". We need to round the ```UnitPrice``` column and cast it to a double data type for CosmosDB. Set the formula to: ```toDouble(round(UnitPrice,2))```.
5959

60-
8.
60+
8. Add another derived column and call it "MakeStruct". This is where we will create a hierarchical structure to hold the values from the details table. Remember, details is a ```M:1``` relation to header. Name the new structure "orderdetailsstruct" and create the hierarchy in this way, setting each subcolumn to the incoming column name:
61+
62+
![Create Struct](media/data-flow/cosmosb9.png)
6163

6264
## Next steps
6365

0 commit comments

Comments
 (0)