Skip to content

Commit ab5b266

Browse files
committed
Update 2022-09-14-json-datatype.md
1 parent 064c59a commit ab5b266

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

website/blog/2022-09-14-json-datatype.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ FILE_FORMAT = (
166166
The following code returns the top 10 projects with the most commits:
167167

168168
```sql
169-
SELECT REPO:name,
169+
SELECT repo:name,
170170
count(id)
171171
FROM github_data
172172
WHERE type = 'PushEvent'
173-
GROUP BY REPO:name
173+
GROUP BY repo:name
174174
ORDER BY count(id) DESC
175175
LIMIT 10;
176176

@@ -193,11 +193,13 @@ LIMIT 10;
193193
The following code returns the top 10 users with the most forks:
194194

195195
```sql
196-
SELECT actor:login, count(id) FROM github_data
197-
WHERE type='ForkEvent'
198-
GROUP BY actor:login
199-
ORDER BY count(id) DESC
200-
LIMIT 10;
196+
SELECT actor:login,
197+
count(id)
198+
FROM github_data
199+
WHERE type='ForkEvent'
200+
GROUP BY actor:login
201+
ORDER BY count(id) DESC
202+
LIMIT 10;
201203
+-----------------------------------+-----------+
202204
| actor:login | count(id) |
203205
+-----------------------------------+-----------+

0 commit comments

Comments
 (0)