-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.sql
45 lines (42 loc) · 929 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
CREATE TABLE
IF NOT EXISTS uber_trips
(
id INTEGER PRIMARY KEY AUTOINCREMENT,
fare_amount FLOAT,
pickup_datetime DATETIME,
pickup_longitude FLOAT,
pickup_latitude FLOAT,
dropoff_longitude FLOAT,
dropoff_latitude FLOAT,
trip_distance FLOAT
);
CREATE TABLE
IF NOT EXISTS taxi_trips
(
id INTEGER PRIMARY KEY AUTOINCREMENT,
pickup_datetime DATETIME,
dropoff_datetime DATETIME,
pickup_longitude FLOAT,
pickup_latitude FLOAT,
dropoff_longitude FLOAT,
dropoff_latitude FLOAT,
tip_amount FLOAT,
total_amount FLOAT,
trip_distance FLOAT
);
CREATE TABLE
IF NOT EXISTS hourly_weather
(
id INTEGER PRIMARY KEY AUTOINCREMENT,
DATE DATETIME,
HourlyPrecipitation FLOAT,
HourlyWindSpeed FLOAT
);
CREATE TABLE
IF NOT EXISTS daily_weather
(
id INTEGER PRIMARY KEY AUTOINCREMENT,
DATE DATE,
HourlyPrecipitation FLOAT,
HourlyWindSpeed FLOAT
);