Skip to content

Commit bb87f9b

Browse files
Merge pull request datawithdanny#20 from DataWithDanny/bugfix/solution-typos
Updating outputs for recent changes
2 parents 9371bfd + 086a07c commit bb87f9b

2 files changed

Lines changed: 38 additions & 36 deletions

File tree

course-content/step3.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -211,20 +211,22 @@ ORDER BY month_start;
211211

212212
| month_start | average_eth_price |
213213
| ---------------------- | ----------------- |
214-
| 2020-01-01 00:00:00+00 | 4267.73 |
215-
| 2020-02-01 00:00:00+00 | 4937.66 |
216-
| 2020-03-01 00:00:00+00 | 3511.64 |
217-
| 2020-04-01 00:00:00+00 | 3691.16 |
218-
| 2020-05-01 00:00:00+00 | 4730.50 |
219-
| 2020-06-01 00:00:00+00 | 4858.88 |
220-
| 2020-07-01 00:00:00+00 | 4925.83 |
221-
| 2020-08-01 00:00:00+00 | 6020.07 |
222-
| 2020-09-01 00:00:00+00 | 5505.55 |
223-
| 2020-10-01 00:00:00+00 | 6132.07 |
224-
| 2020-11-01 00:00:00+00 | 8573.75 |
225-
| 2020-12-01 00:00:00+00 | 11302.20 |
214+
| 2020-01-01 00:00:00+00 | 156.65 |
215+
| 2020-02-01 00:00:00+00 | 238.76 |
216+
| 2020-03-01 00:00:00+00 | 160.18 |
217+
| 2020-04-01 00:00:00+00 | 171.29 |
218+
| 2020-05-01 00:00:00+00 | 207.45 |
219+
| 2020-06-01 00:00:00+00 | 235.92 |
220+
| 2020-07-01 00:00:00+00 | 259.57 |
221+
| 2020-08-01 00:00:00+00 | 401.73 |
222+
| 2020-09-01 00:00:00+00 | 367.77 |
223+
| 2020-10-01 00:00:00+00 | 375.79 |
224+
| 2020-11-01 00:00:00+00 | 486.73 |
225+
| 2020-12-01 00:00:00+00 | 622.35 |
226226
<br>
227227

228+
229+
228230
### Question 7
229231

230232
> Are there any duplicate `market_date` values for any `ticker` value in our table?

course-content/step4.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,16 @@ ORDER BY txn_year, txn_type;
136136

137137
| txn_year | txn_type | transaction_count | total_quantity | average_quantity |
138138
| -------- | -------- | ----------------- | -------------- | ---------------- |
139-
| 2017 | BUY | 4064 | 21751.61 | 5.35 |
140-
| 2017 | SELL | 854 | 4321.30 | 5.06 |
141-
| 2018 | BUY | 3993 | 19922.07 | 4.99 |
142-
| 2018 | SELL | 863 | 4320.24 | 5.01 |
143-
| 2019 | BUY | 4041 | 20226.60 | 5.01 |
144-
| 2019 | SELL | 867 | 4364.99 | 5.03 |
145-
| 2020 | BUY | 4183 | 21033.04 | 5.03 |
146-
| 2020 | SELL | 864 | 4328.17 | 5.01 |
147-
| 2021 | BUY | 2600 | 12916.04 | 4.97 |
148-
| 2021 | SELL | 589 | 2864.94 | 4.86 |
139+
| 2017 | BUY | 2261 | 12069.58 | 5.34 |
140+
| 2017 | SELL | 419 | 2160.22 | 5.16 |
141+
| 2018 | BUY | 2204 | 11156.06 | 5.06 |
142+
| 2018 | SELL | 433 | 2145.05 | 4.95 |
143+
| 2019 | BUY | 2192 | 11114.43 | 5.07 |
144+
| 2019 | SELL | 443 | 2316.24 | 5.23 |
145+
| 2020 | BUY | 2350 | 11748.76 | 5.00 |
146+
| 2020 | SELL | 456 | 2301.98 | 5.05 |
147+
| 2021 | BUY | 1433 | 7161.32 | 5.00 |
148+
| 2021 | SELL | 293 | 1478.00 | 5.04 |
149149
<br>
150150

151151
### Question 5
@@ -171,20 +171,20 @@ ORDER BY calendar_month;
171171
</details>
172172
<br>
173173

174-
| calendar_month | buy_quantity | sell_quantity |
175-
| -------------- | ---------------------- | --------------------- |
176-
| 2020-01-01 | 1882.7000203746428756 | 349.3725812083231374 |
177-
| 2020-02-01 | 1531.0106358610396384 | 343.508128084135167 |
178-
| 2020-03-01 | 1693.5669211461637014 | 366.959518007770558 |
179-
| 2020-04-01 | 1725.6283079850810635 | 422.64234679504139508 |
180-
| 2020-05-01 | 1761.6881436085408473 | 350.467297223666174 |
181-
| 2020-06-01 | 1682.2821732162153014 | 387.638801697624787 |
182-
| 2020-07-01 | 1887.2312255768009478 | 271.0746272089570493 |
183-
| 2020-08-01 | 1817.6817037570679820 | 413.445389944001820 |
184-
| 2020-09-01 | 1800.5229161796472593 | 313.5526304372053382 |
185-
| 2020-10-01 | 1849.56943373260492995 | 371.8053457181736909 |
186-
| 2020-11-01 | 1698.4066050651242784 | 347.540073846350298 |
187-
| 2020-12-01 | 1702.7471083560609640 | 390.1583195136288607 |
174+
| calendar_month | buy_quantity | sell_quantity |
175+
| -------------- | ----------------- | ------------------ |
176+
| 2020-01-01 | 801.0541163041565 | 158.1272716986775 |
177+
| 2020-02-01 | 687.8912804600265 | 160.06533517839912 |
178+
| 2020-03-01 | 804.2368342042604 | 182.1895644691428 |
179+
| 2020-04-01 | 761.87446914631 | 203.16695745059786 |
180+
| 2020-05-01 | 787.4238801914097 | 149.08328330131854 |
181+
| 2020-06-01 | 787.4659503521506 | 208.3362898912813 |
182+
| 2020-07-01 | 890.7807530272569 | 117.01628097387932 |
183+
| 2020-08-01 | 800.6004484214079 | 178.5423079909115 |
184+
| 2020-09-01 | 767.654783160818 | 118.86826373014458 |
185+
| 2020-10-01 | 744.7913667867248 | 174.269279883162 |
186+
| 2020-11-01 | 698.0915637008526 | 163.74629299419385 |
187+
| 2020-12-01 | 752.4121935735661 | 212.77643601396653 |
188188
<br>
189189

190190
### Question 6

0 commit comments

Comments
 (0)