Skip to content

Commit 3ad9456

Browse files
authored
Update analyze-twitch-data-with-sqlite.mdx
1 parent 8d17f5f commit 3ad9456

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

projects/analyze-twitch-data-with-sqlite/analyze-twitch-data-with-sqlite.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,33 @@ Now it’s a good time to write down the questions that we have.
292292

293293
Here are some of mine:
294294

295+
- _How many people on average watches these streamers?_
295296
- _Who were the hottest rising streamers in 2021?_
296297
- _What are the most popular games in the stream table?_
297298
- _These are some big numbers from the game League of Legends (also known as LoL). Where are these LoL stream viewers located?_
298299
- _The player column contains the source the user is using to view the stream (site, iPhone, Android, etc). Create a list of players and their number of streamers._
299300

300301
Let’s go through each of these one by one.
301302

303+
### How many people on average watches these streamers?
304+
305+
In 2021, Twitch had about 8.46 million unique streamers active each month. That means, to be in the top 1,000, you are literally in the 0.01% of the all streamers in the world. So how many people actually watches these people each time?
306+
307+
For this, we can use the `AVG()` function:
308+
309+
```sql
310+
SELECT AVG(average_viewers)
311+
FROM streamers;
312+
```
313+
314+
The average would be:
315+
316+
```terminal
317+
4776.26373626374
318+
```
319+
320+
4,776 people tune in on average to these streamers! Dang, that's not as high as I thought. Now I don't feel as bad when we stream to < 100 people on Codédex.
321+
302322
### Who are the hottest rising streamers in 2021?
303323

304324
Aka who gained the most followers?
@@ -322,6 +342,8 @@ Bugha,2220765s
322342
pokimane,2085831
323343
```
324344

345+
I just looked up all of them. All of them are still streaming in 2025!
346+
325347
### Top 10 Most Popular Games
326348

327349
To find out this one, we need to use `COUNT()` and `GROUP BY`:

0 commit comments

Comments
 (0)