We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38aa442 commit 5360539Copy full SHA for 5360539
aggregations-and-analytics/05_top_n/05_top_n.md
@@ -14,7 +14,7 @@ each spell a wizard has cast, we can maintain a continuous total of how many tim
14
```sql
15
SELECT wizard, spell, COUNT(*) AS times_cast
16
FROM spells_cast
17
-GROUP BY wizard;
+GROUP BY wizard, spell;
18
```
19
20
This result can be used in an `OVER` window to calculate a [Top-N](https://docs.ververica.com/user_guide/sql_development/queries.html#top-n).
0 commit comments