By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| RealOrderInData | OrderInData | MatchedOrderInSearchKeys | Key1 | Key2 | Area | BuildingType | DistributeOrder |
|---|---|---|---|---|---|---|---|
| 5 | 5 | 1 | 139743 | null | 8475.00 | Industrial | 1 |
| 6 | 5 | 1 | 139743 | null | 593.00 | Office | 1 |
| 11 | 11 | 3 | 139878 | null | 1268.00 | Office | 1 |
| 12 | 11 | 3 | 139878 | null | 15534.00 | Warehouse | 1 |
| 16 | 16 | 5 | 139953 | 6 | 20000.00 | Warehouse | 1 |
| 17 | 17 | 6 | 139953 | 14 | 20000.00 | Office | 1 |
Warning: Null value is eliminated by an aggregate or other SET operation.