Dimension Table | |||
Customer_Id | Customer_ID_SK | Customer_name | |
1 | -1 | #Unknown | |
2 | 1 | Ravi | |
3 | 2 | Kannan | |
4 | 3 | Henning | |
Fact Table | |||
Sales_Id | Customer_ID_SK | Sales Amount | |
1 | 1 | 1000 | |
2 | 2 | 1500 | |
3 | 3 | 1750 | |
4 | -1 | 1900 | |
5 | -1 | 2000 | |
Customer_ID_SK is be the primary Key, refer as FK for fact table | |||
I want to update the Dimension Table and the Curresponding fact data once I get the Dimension Datas as below | |||
Insert | |||
Customer_Id | Customer_ID_SK | Customer_name | |
5 | 4 | Selvi | |
6 | 5 | Rani | |
Update | |||
Sales_Id | Customer_ID_SK | Sales Amount | |
4 | 4 | 1900 | |
5 | 5 | 2000 | |
Kindly suggest me the steps to do the same |
ShanmugaRaj