By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
UNIQUE constraint failed: devices.logical_address, devices.district
FOREIGN KEY constraint failed
device_id | logical_address | district | physical_location_id |
---|---|---|---|
1 | 100 | 1 | LA |
2 | 201 | 1 | LB |
3 | 100 | 2 | LC |