Y
Hacker News
new
|
ask
|
show
|
jobs
by
setr
338 days ago
I mean this particular problem would be resolved if the database let you define/defend a UNIQUE constraint across tables. Then you could just do approach #2 without the psychotic check constraint.