-
Notifications
You must be signed in to change notification settings - Fork 1
/
tourism.sql
79 lines (68 loc) · 1.85 KB
/
tourism.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
DROP TABLE IF EXISTS clean_arrivals;
DROP TABLE IF EXISTS clean_revenues;
CREATE TABLE clean_arrivals (
country VARCHAR,
latitude VARCHAR,
longitude VARCHAR,
continent_name VARCHAR,
country_code VARCHAR PRIMARY KEY,
total_arrivals_1995 numeric,
total_arrivals_1996 numeric,
total_arrivals_1997 numeric,
total_arrivals_1998 numeric,
total_arrivals_1999 numeric,
total_arrivals_2000 numeric,
total_arrivals_2001 numeric,
total_arrivals_2002 numeric,
total_arrivals_2003 numeric,
total_arrivals_2004 numeric,
total_arrivals_2005 numeric,
total_arrivals_2006 numeric,
total_arrivals_2007 numeric,
total_arrivals_2008 numeric,
total_arrivals_2009 numeric,
total_arrivals_2010 numeric,
total_arrivals_2011 numeric,
total_arrivals_2012 numeric,
total_arrivals_2013 numeric,
total_arrivals_2014 numeric,
total_arrivals_2015 numeric,
total_arrivals_2016 numeric,
total_arrivals_2017 numeric,
total_arrivals_2018 numeric,
total_arrivals_2019 numeric
);
CREATE TABLE clean_revenues (
country VARCHAR,
latitude VARCHAR,
longitude VARCHAR,
continent_name VARCHAR,
country_code VARCHAR PRIMARY KEY,
total_revenues_1995 numeric,
total_revenues_1996 numeric,
total_revenues_1997 numeric,
total_revenues_1998 numeric,
total_revenues_1999 numeric,
total_revenues_2000 numeric,
total_revenues_2001 numeric,
total_revenues_2002 numeric,
total_revenues_2003 numeric,
total_revenues_2004 numeric,
total_revenues_2005 numeric,
total_revenues_2006 numeric,
total_revenues_2007 numeric,
total_revenues_2008 numeric,
total_revenues_2009 numeric,
total_revenues_2010 numeric,
total_revenues_2011 numeric,
total_revenues_2012 numeric,
total_revenues_2013 numeric,
total_revenues_2014 numeric,
total_revenues_2015 numeric,
total_revenues_2016 numeric,
total_revenues_2017 numeric,
total_revenues_2018 numeric,
total_revenues_2019 numeric
);
SELECT * FROM clean_arrivals;
SELECT * FROM clean_revenues;