-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlastic.sql
54 lines (42 loc) · 875 Bytes
/
Plastic.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
--Create new table from mlw_meta with plastic only
SELECT generalcode,
generalname
INTO plastic_names
FROM mlw_meta
WHERE category = 'Plastic';
SELECT * FROM plastic_names;
--Create new table for plasticwaste in 2017
SELECT country,
value
INTO year_2017
FROM pbt
Where YEAR ='2017';
SELECT *FROM year_2017
--Create new table for plasticwaste in 2018
SELECT country,
value
INTO year_2018
FROM pbt
Where YEAR ='2018';
SELECT *FROM year_2018
--Create new table for plasticwaste in 2019
SELECT country,
value
INTO year_2019
FROM pbt
Where YEAR ='2019';
SELECT *FROM year_2019
--Create new table for plasticwaste in 2020
SELECT country,
value
INTO year_2020
FROM pbt
Where YEAR ='2020';
SELECT *FROM year_2020
--Create new table for plasticwaste in 2021
SELECT country,
value
INTO year_2021
FROM pbt
Where YEAR ='2021';
SELECT *FROM year_2021