Skip to content

Commit 794d435

Browse files
Update ratio_to_report.md
1 parent 7bbca85 commit 794d435

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ratio_to_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ order by team, position;
3535
![Copy of Copy of Copy of favicon](https://github.com/user-attachments/assets/c0219bc2-6030-4fcb-a34e-c8523c48d07c)
3636

3737

38-
The `over()` in the query above tells the database to expand the _window_ in which the `ratio_to_report()` operates to the whole dataset.
38+
The `over()` in the query above tells the database to expand the **_window_** in which the `ratio_to_report()` operates to the whole dataset.
3939

40-
The `ratio_to_report()` window function takes an expression (usually a column) as input and calculates the ratio of that expression to the window that is defined (in this case, the whole dataset).
40+
The `ratio_to_report()` window function takes an expression (usually a column) as input and calculates the ratio of that expression to the **_window_** that is defined (in this case, the whole dataset).
4141

4242
## Using ratio_to_report() to Calculate Partitioned Percentages
4343

44-
Let’s say we were not only interested in each players overall contribution to goals, but also their contribution to goals for their specific team. We can then add a partition by to the _window_:
44+
Let’s say we were not only interested in each players overall contribution to goals, but also their contribution to goals for their specific team. We can then add a partition by to the **_window_**:
4545

4646
```sql
4747
select

0 commit comments

Comments
 (0)