Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> CHECK Integrity constraint help
I have this table called Faculty_Schedule, which contains a faculty member's
schedule for a particular semester. In the creation of the table, I need to
add a check constraint where the teacher can not teach more than 4 classes
per semester. Here is what i have so far.
CREATE TABLE faculty_schedule(
fac_schedule_id NUMBER(2),
faculty_semster VARCHAR(6),
faculty_id NUMBER(5), course_id NUMBER(5),
How would I include this CHECK constraint in here. This is the first time im writing something that has this type of constraint so I am a little confused about the way it should be done.. Any help would be appreciated. Thanks in advance. Received on Fri Sep 17 2004 - 13:55:18 CDT
![]() |
![]() |