| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Relation Schemata vs. Relation Variables
Erwin wrote:
> >
> > I think a transition constraint must be defined as a relational
> > expression in the general form of some join between t and t'.
> >
>
> "Suppliers with status 20 cannot be deleted."
>
> I think this is indeed an example of a transition constraint. Can this
> be expressed using just JOIN ?
In SQL (assume SupplierId is the key):
NOT EXISTS
(SELECT SupplierId
FROM Suppliers /* before */
WHERE Status = 20
EXCEPT
SELECT SupplierId
FROM Suppliers' /* after */) ;
-- David PortasReceived on Mon Aug 21 2006 - 07:17:02 CDT
![]() |
![]() |