By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
3 rows affected
| Id | Type | Source | Date | rn |
|---|---|---|---|---|
| 11 | Customer | 2024-02-10 | 1 | |
| 11 | External | 2024-02-12 | 1 | |
| 11 | External | 2024-02-13 | 2 |
| Id | External source Date | Customer source Date |
|---|---|---|
| 11 | 2024-02-12 | 2024-02-10 |
| 11 | 2024-02-13 | null |
Warning: Null value is eliminated by an aggregate or other SET operation.