| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: delete cascade
paul c wrote:
> Bob Badour wrote:
>
>> ... >> Consider base relations you would likely find familiar with an Invoice >> relation, an InvoiceItem relation, and a foreign key reference from >> InvoiceItem to Invoice. >> >> In the first case, consider application views that essentially mirror >> the base relations. If someone tries to delete an invoice while >> invoice items remain, the dbms will balk with an error due to the >> foreign key constraint. >> >> In a second case, consider an application view that groups the invoice >> items as an RVA of each invoice. If one deletes an invoice, one >> deletes the invoice items at the same time and the dbms will not balk. >> ...
I look at that and ask: Is the join theoretically updatable? And I answer with: "Yes, not only is it updatable but we have our choice of update strategies."
Granted, absent any other information, one has no theoretical reason to favor one update strategy over another, which is why a dbms must provide some means to express whatever additional information is necessary to disambiguate the situation. Received on Sun Apr 22 2007 - 12:33:00 CDT
![]() |
![]() |