I'm taking a denormalized Access DB and moving it to a normalized table in SQL based on EF 4.
Let's say I have the following in the Access DB
-------------------
| NAME | FRUIT |
-------------------
| John | Apple |
| Jane | Apple |
| Mark | Orange |
| Nancy | Orange |
| Jim | Apple |
-------------------
I'm creating the following two databases in SQL
tblNames:
-------------------------------
| ID | Name | FruitID |
-------------------------------
| 1 | John | 1 |
| 2 | Jane | 1 |
| 3 | Mark | 2 |
| 4 | Nancy | 2 |
| 5 | Jim | 1 |
-------------------------------
tblFruits:
--------------------
| ID | Fruit |
--------------------
| 1 | Apple |
| 2 | Orange |
--------------------
In my dataflow, I can pull the names using Derived Column (the table is actually larger and I'm doing some data type transformations). However, how do I take the output from the Derived Column and for each row match it to the proper ID of the fruits table producing the correct output that needs to be inserted into the tblNames database?