subquery not allowed here
From: Allen <allenmarcos_at_hotmail.com>
Date: 19 Jul 2003 12:52:09 -0700
Message-ID: <fc9aa14a.0307191152.4716fbde_at_posting.google.com>
Date: 19 Jul 2003 12:52:09 -0700
Message-ID: <fc9aa14a.0307191152.4716fbde_at_posting.google.com>
Oracle 9.
CREATE TABLE Visit (
I get subquery not allowed here. I don't have much experience, but as
far as i can tell from my book this should work. But then again I just
learned that oracle does not allow ASSERTION which is taught in this
book; so is this the same problem? If yes could someone tell me how to
Trying to put a constraint. The date_time field in table Visit should
be >= than date_admitted field in table Admission.
adid INT REFERENCES myAdmission(adid),
date_time DATE CONSTRAINT date_time_limits
CHECK (date_time >= ALL
(SELECT date_admitted
FROM Admission, Visit
WHERE Admission.adid = Visit.adid)),
);