-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFinal Project Create.sql
105 lines (99 loc) · 2.06 KB
/
Final Project Create.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
CREATE TABLE "census00" (
"id" SERIAL PRIMARY KEY,
"population" int,
"minimum_age" int,
"maximum_age" int,
"gender" VARCHAR(6),
"zipcode" VARCHAR(5),
"geo_id" VARCHAR(14)
);
CREATE TABLE "census10" (
"id" SERIAL PRIMARY KEY,
"population" int,
"minimum_age" int,
"maximum_age" int,
"gender" VARCHAR(6),
"zipcode" VARCHAR(5),
"geo_id" VARCHAR(20)
);
CREATE TABLE "census20" (
"id" SERIAL PRIMARY KEY,
"population" int,
"minimum_age" int,
"maximum_age" int,
"gender" VARCHAR(6),
"zipcode" VARCHAR(5),
"geo_id" VARCHAR(20)
);
CREATE TABLE "ZHVI00" (
"id" SERIAL PRIMARY KEY,
"RegionID" VARCHAR(5),
"SizeRank" int,
"RegionName" VARCHAR(2),
"RegionType" VARCHAR(3),
"StateName" VARCHAR(2),
"State" VARCHAR(2),
"City" VARCHAR(250),
"Metro" VARCHAR(250),
"CountyName" VARCHAR(250),
"2000_01_31" int,
"2000_02_29" int,
"2000_03_31" int,
"2000_04_30" int,
"2000_05_31" int,
"2000_06_30" int,
"2000_07_31" int,
"2000_08_31" int,
"2000_09_30" int,
"2000_10_31" int,
"2000_11_30" int,
"2000_12_31" int
);
CREATE TABLE "ZHVI10" (
"id" SERIAL PRIMARY KEY,
"RegionID" VARCHAR(5),
"SizeRank" int,
"RegionName" VARCHAR(2),
"RegionType" VARCHAR(3),
"StateName" VARCHAR(2),
"State" VARCHAR(2),
"City" VARCHAR(250),
"Metro" VARCHAR(250),
"CountyName" VARCHAR(250),
"2010_01_31" int,
"2010_02_29" int,
"2010_03_31" int,
"2010_04_30" int,
"2010_05_31" int,
"2010_06_30" int,
"2010_07_31" int,
"2010_08_31" int,
"2010_09_30" int,
"2010_10_31" int,
"2010_11_30" int,
"2010_12_31" int
);
CREATE TABLE "ZHVI20" (
"id" SERIAL PRIMARY KEY,
"RegionID" VARCHAR(5),
"SizeRank" int,
"RegionName" VARCHAR(2),
"RegionType" VARCHAR(3),
"StateName" VARCHAR(2),
"State" VARCHAR(2),
"City" VARCHAR(250),
"Metro" VARCHAR(250),
"CountyName" VARCHAR(250),
"2020_01_31" int,
"2020_02_29" int,
"2020_03_31" int,
"2020_04_30" int,
"2020_05_31" int,
"2020_06_30" int,
"2020_07_31" int,
"2020_08_31" int,
"2020_09_30" int,
"2020_10_31" int,
"2020_11_30" int,
"2020_12_31" int
);