londondevil
May 11th, 2004, 01:54 PM
I am trying to check an attribute value to see that as long as it exists in one of the tables, it should be ok
CHECK StudentId IN ((SELECT StudentId FROM Enrolment) OR (SELECT StudentId FROM Student))
how else would you code the above, if this isnt legal ?:confused: :confused: :confused:
CHECK StudentId IN ((SELECT StudentId FROM Enrolment) OR (SELECT StudentId FROM Student))
how else would you code the above, if this isnt legal ?:confused: :confused: :confused: