Skip to content

Commit bf8fcfc

Browse files
authored
Update 9+_COVID19.md
1 parent a383036 commit bf8fcfc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sqlzoo/9+_COVID19.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ Modify the query to show confirmed for the day before.
3030

3131
```sql
3232
SELECT
33-
name, DAY(whn), confirmed,
34-
LAG(confirmed, 1) OVER (PARTITION BY name ORDER BY whn)
33+
name,
34+
DAY(whn),
35+
confirmed,
36+
LAG(confirmed, 1) OVER (PARTITION BY name ORDER BY whn) AS 'day_before'
3537
FROM covid
3638
WHERE name = 'Italy'
3739
AND MONTH(whn) = 3

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy