forked from vasudhanair/Final_Project_Group4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.sql
61 lines (57 loc) · 952 Bytes
/
schema.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
CREATE TABLE tesla (
date date,
open_price int,
highest_price int,
lowest_price int,
closing_price int,
adjusted_closing_price int,
volume int
);
CREATE TABLE modelsales (
vehicle text,
tech_type text,
year_2011 int,
year_2012 int,
year_2013 int,
year_2014 int,
year_2015 int,
year_2016 int,
year_2017 int,
year_2018 int,
year_2019 int,
total int
);
CREATE TABLE evsalesyearly (
vehicle_type text,
year_2011 int,
year_2012 int,
year_2013 int,
year_2014 int,
year_2015 int,
year_2016 int,
year_2017 int,
year_2018 int,
year_2019 int
);
CREATE TABLE teslasales (
tesla_vehicle text,
tech_type text,
year_2011 int,
year_2012 int,
year_2013 int,
year_2014 int,
year_2015 int,
year_2016 int,
year_2017 int,
year_2018 int,
year_2019 int,
total int
);
CREATE TABLE teslaquarterlysale (
year_teslasale int,
q1 int,
q2 int,
q3 int,
q4 int,
yearly_total int
);