So I am building a database for a police station in access. I have a reports super-class that is divided into several sub-classes.From what my books tell me the supper-class should be the one with the "ID" that is the primary key
and that the ID should be passed onto the sub classes so that there are no 2 sub-classes with the same ID .How do I make a validation rule that doesn't allow to make a new sub-clas report if that ID doesn't exists or is being used by other sub classes
相关问题
- How to better organise database to account for cha
- Database best practices - Status
- Designing lossless-join, dependency preserving, 3N
- Use of empty strings instead of null - a good prac
- Shared Primary Key
相关文章
- 如何实现如下的数据库查询?
- Storing User Settings - anything wrong with using
- Are PostgreSQL VIEWS created newly each time they
- What is the difference between UNIQUE, UNIQUE KEY
- MySQL Repeatable Read isolation level and Lost Upd
- Optional Database Entities
- TIme-based Notification Architecture
- The right way to manage user privileges (user hier
There is no way insertion in a table can check whether that primary key is present in another table apart from either forcing this constraint through business rule or by using DB Trigger. You need to analyse your DB Model again and try to identify a good design.