Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
goto11
on Oct 5, 2021
|
parent
|
context
|
favorite
| on:
Databases, Types, and the Relational Model: The Th...
Most databases have weak support for cross-table constraints. I believe in SQL Server you can define an indexed view on the union of the tables and then apply a unique constraint on the foreign key.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: