Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.39 KB | None | 0 0
  1. CREATE TABLE Exam
  2.     (ExamDateTime   DateTime   NOT NULL,
  3.      RoomNo   CHAR(5)   NOT NULL,
  4.      Supervisor   CHAR(50),
  5.      TotalExaminee   INT,
  6.      ActualExaminee   INT,
  7.      CHECK (TotalExaminee>=ActualExaminee)
  8.      PRIMARY KEY (ExamDateTime, RoomNo),
  9.      FOREIGN KEY (Supervisor)  REFERENCES  Supervisor (Supervisor)
  10.      FOREIGN KEY (RoomNo)  REFERENCES  Room (RoomNo)
  11.      );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement