Path: dp-news.maxwell.syr.edu!spool.maxwell.syr.edu!drn.maxwell.syr.edu!news.maxwell.syr.edu!postnews2.google.com!not-for-mail
From: jcelko212@earthlink.net (--CELKO--)
Newsgroups: comp.databases.theory
Subject: Re: How to ensure data consistency?
Date: 9 Sep 2004 08:57:46 -0700
Organization: http://groups.google.com
Lines: 7
Message-ID: <18c7b3c2.0409090757.4133eee7@posting.google.com>
References: <3lmnj0tdqs6n98so05hslbs6b0rjqkkdk7@4ax.com>	<fo-dnaxhxYtECabcRVn-uA@comcast.com>	<7dhqj057v2nb3jvgig151psbhl1mg9hrsm@4ax.com>	<PP-dnUj6cu9gX6HcRVn-oQ@comcast.com>	<3fsrj0lpe76pfvfjfe1ur2ubpb3hqu69fg@4ax.com>	<vBw%c.6339$BQ4.1607@trnddc06>	<sXw%c.6825$Q44.760@trnddc09>	<20040909120732.6c7b769a.felix.klee@inka.de> <20040909120944.4be770f8.felix.klee@inka.de>
NNTP-Posting-Host: 24.153.177.203
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1094745467 27058 127.0.0.1 (9 Sep 2004 15:57:47 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 9 Sep 2004 15:57:47 +0000 (UTC)
Xref: dp-news.maxwell.syr.edu comp.databases.theory:25888

>> there still is the problem that the main table may contain entries
for which there are no [rows in] subtables. <<

In intermediate SQL-92, all table level constraints are TRUE for an
empty table, so you need to have full SQL-92 and use a cross table
constraint.  That would be either a CREATE ASSERTION statement or a
CHECK() that has a predicate that references the other table.
