Yurttas/PL/DBL/postgres/F/01/Company-A/WorksOn-cre.sql

 1/*
 2REM
 3REM
 4REM WorksOn-cre.sql
 5REM
 6REM
 7*/
 8
 9SELECT current_schema();
10SET search_path to "companya";
11
12CREATE TABLE WorksOn(essn CHAR(9) NOT NULL,
13                     pno INTEGER NOT NULL,
14                     hours FLOAT NOT NULL,
15         PRIMARY KEY(essn, pno),
16         FOREIGN KEY(essn) REFERENCES Employee(ssn),
17         FOREIGN KEY(pno) REFERENCES Project(pnumber));