By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
4 rows affected
3 rows affected
| NEW_ID | ID | REPEAT_CUSTOMER_ID | STORE | DATE | NEW_REPEAT_CUSTOMER_ID |
|---|---|---|---|---|---|
| 1 | 1 | null | A | 2022-07-19 00:00:00.000 | null |
| 2 | 2 | null | A | 2022-07-19 00:00:00.000 | null |
| 3 | 3 | null | A | 2022-07-19 00:00:00.000 | null |
| 4 | 1 | null | B | 2022-07-19 00:00:00.000 | null |
| 5 | 2 | null | B | 2022-07-19 00:00:00.000 | null |
| 6 | 3 | 1 | B | 2022-07-19 00:00:00.000 | 4 |
| 7 | 4 | null | B | 2022-07-19 00:00:00.000 | null |