File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -166,11 +166,11 @@ FILE_FORMAT = (
166
166
The following code returns the top 10 projects with the most commits:
167
167
168
168
``` sql
169
- SELECT REPO :name,
169
+ SELECT repo :name,
170
170
count (id)
171
171
FROM github_data
172
172
WHERE type = ' PushEvent'
173
- GROUP BY REPO :name
173
+ GROUP BY repo :name
174
174
ORDER BY count (id) DESC
175
175
LIMIT 10 ;
176
176
@@ -193,11 +193,13 @@ LIMIT 10;
193
193
The following code returns the top 10 users with the most forks:
194
194
195
195
``` 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 ;
201
203
+ -- ---------------------------------+-----------+
202
204
| actor:login | count (id) |
203
205
+ -- ---------------------------------+-----------+
You can’t perform that action at this time.
0 commit comments