Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: