Yurttas/PL/DBL/postgres/F/01/Company-A/Dependent-cre.sql
Revision as of 00:40, 5 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">→REM REM REM Dependent-cre.sql REM REM: SELECT current_schema(); SET search_path to "companya"; CREATE TABLE Dep...")
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));