I want to create DLT pipeline like following. I have streaming bronze table which looks like:
| Name | City | Country |
|---|---|---|
| John | Tokyo | Japan |
| Mary | New York | USA |
| Sam | Tokyo | Japan |
Now I need two more tables. Main dimension and address codebook. Generated identity column or something like this. So, the pipeline should continue with following results:
streaming table silver_address
| ID | City | Country |
|---|---|---|
| 1 | Tokyo | Japan |
| 2 | New York | USA |
streaming table silver_people
| ID | Name | Address_ID |
|---|---|---|
| 1 | John | 1 |
| 2 | Mary | 2 |
| 3 | Sam | 1 |
How should the streaming declarations for the next two tables look in SQL?