Hi I have two tables and I want to update the data of table 2 from table 1 based on the date .
Table 1:
| Id | Date | Value |
|---|---|---|
| 1 | 8-june-2022 | 2 |
| 1 | 9-june-2022 | 5 |
Table 2:
| Id | Date | Value |
|---|---|---|
| 1 | 2-june-2022 | |
| 1 | 6-june-2022 |
Table 2 after update:
| Id | Date | Value |
|---|---|---|
| 1 | 2-june-2022 | 2 |
| 1 | 6-june-2022 | 5 |
The common column is the id and I want to update the data based on id and date.In other words the data should be taken from table 1 in order and update table 2 data also by order