By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version() |
---|
5.7.39 |
Records: 3 Duplicates: 0 Warnings: 0
Records: 6 Duplicates: 0 Warnings: 0
Records: 6 Duplicates: 0 Warnings: 0
id | name | primaryImageId | primaryImageValue | primaryUserId | primaryUserValue |
---|---|---|---|---|---|
1 | one | 3 | primary!!! | 1 | first one, should be returned |
2 | two | 4 | primary!!! | null | null |
3 | three | null | null | 4 | primary |