• Subject: Referential Integrity with soft deletes
  • From: Rob Berendt <rob@xxxxxxxxx>
  • Date: Thu, 30 Mar 2000 11:46:50 -0500

Suppose that you have a master file with an active record code.  
The business rule is the following:  Existing records in children 
files may contain inactive master records.  However, no new children 
files may contain inactive records from master files.  Is there a 
way to enforce this using RI?

Sample master:
Rec
Cod  Key
 A   A
 D   B
 A   C
 A   D
 D   E

Child file
Child   Master
 Key     Key
  1       A
  2       A
  3       B
  8       A
  9       D
 10       E

If we change the RecCod on D to A then we could not add a new child, 
say 11, that uses masterkey of D.  Is this possible?
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.