Skip to content

Commit

Permalink
docs: #80 Add the description of "select sum races by player" csv file.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-weirdo committed Nov 26, 2024
1 parent a9c540e commit 60e111a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions kgstatsSrv/src/test/resources/ru/klavogonki/data/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,19 @@ limit 500;
## Поля
Только `playerId` и `carsCount`.


# sumraces20240416.csv

По сути является просто суммой всех пробегов по всем словарям из `userinfo`, сгруппированным по игрокам.

Выбраны только игроки с ненулевым суммарным пробегом.

```sql
select
user_id,
sum(num_races) as sum_races
from klavogonki.userinfo
group by user_id
having (sum_races > 0);
```

0 comments on commit 60e111a

Please sign in to comment.