-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataCleaning.sql
More file actions
88 lines (70 loc) · 1.52 KB
/
Copy pathDataCleaning.sql
File metadata and controls
88 lines (70 loc) · 1.52 KB
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
- Data Cleaning in SQL
-Combine all tables into one table and remove all nulls -
Select *
From ((select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202201_tripdata`)
union all
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202202_tripdata`)
UNION ALL
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202203_tripdata`)
UNION ALL
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202204_tripdata`)
UNION ALL
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202205_tripdata`)
UNION ALL
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202206_tripdata`)
UNION ALL
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202207_tripdata`)
UNION ALL
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202208_tripdata`)
UNION ALL
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202209_tripdata`)
UNION ALL
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202210_tripdata`)
UNION ALL
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202211_tripdata`)
UNION ALL
(select
*
From
`capstone-case-study-389823.cyclistic_2022_tripdata.202212_tripdata`))
WHERE
start_station_name is not null
and end_station_name is not null
and end_station_id is not null
and start_station_id is not null
and end_lat is not null
and end_lng is not null
**Data saved into new table called combine_data**