rikky s
15 years ago
Im having trouble inserting this small SQL statement:
alter table QUALIFICATION add
constraint ROLE_QUAL CHECK DRIVERID IN(SELECT DRIVERID FROM STAFF);
It just checks that the DRIVERID in the QUALIFICATION table exists in the STAFF table
but it keeps returning an error message saying
"Missing left parenthesis ORA-00906"
however if i enter the values that exists in the STAFF table it accepts fine
alter table QUALIFICATION add constraint ROLE_QUAL CHECK (CLASS IN ('D001','D002','D003','D004'));
PLEASE HELP ME OUT ITS MAKING ME GO MAD!!!