By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
16 rows affected
| id | store_id | updated_at |
|---|---|---|
| 0 | zzz | 2020-01-01 |
| 1 | store-1 | 2021-01-01 |
| 2 | store-2 | 2021-01-02 |
| 3 | store-3 | 2021-01-03 |
| 4 | store-1 | 2021-01-04 |
| 5 | store-2 | 2021-01-05 |
| 6 | store-3 | 2021-01-06 |
| 7 | store-1 | 2021-01-07 |
| 8 | store-2 | 2021-01-08 |
| 9 | store-3 | 2021-01-09 |
| 10 | store-1 | 2021-01-10 |
| 11 | store-2 | 2021-01-11 |
| 12 | store-3 | 2021-01-12 |
| 13 | store-1 | 2021-01-13 |
| 14 | store-2 | 2021-01-14 |
| 15 | store-3 | 2021-01-15 |
| store_id |
|---|
| zzz |
| store-1 |
| id | store_id | updated_at |
|---|---|---|
| 0 | zzz | 2020-01-01 |
| 1 | store-1 | 2021-01-01 |
| 4 | store-1 | 2021-01-04 |
| 7 | store-1 | 2021-01-07 |
| 10 | store-1 | 2021-01-10 |