Yurttas/PL/DBL/postgres/F/01/Company-A/Dependent-cre.sql
Jump to navigation
Jump to search
1/*
2REM
3REM
4REM Dependent-cre.sql
5REM
6REM
7*/
8
9SELECT current_schema();
10SET search_path to "companya";
11
12CREATE TABLE Dependent(essn CHAR(9) NOT NULL,
13 dependentname VARCHAR(16) NOT NULL,
14 sex CHAR,
15 bdate CHAR(9),
16 relationship VARCHAR2(8),
17 PRIMARY KEY(essn, dependentname),
18 FOREIGN KEY(essn) REFERENCES Employee(ssn));