TheBugSlayer
Programmer
Is it possible to set a constraint on a field so that it checks that the value being entered exists in another table?
Something like
... emp_id empid
CONSTRAINT CK_emp_id CHECK (emp_id IN
SELECT emp_id FROM Employees)...
It that is not possible, what is the alternative?
Thanks for your help.
Something like
... emp_id empid
CONSTRAINT CK_emp_id CHECK (emp_id IN
SELECT emp_id FROM Employees)...
It that is not possible, what is the alternative?
Thanks for your help.