Skip to content

Commit 00d34cf

Browse files
authored
Update analyze-twitch-data-with-sqlite.mdx
1 parent 1ec645c commit 00d34cf

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

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

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,30 @@ Inside the SQLite prompt, create a table called `streams`:
141141

142142
```sql
143143
CREATE TABLE streamers (
144-
id TEXT PRIMARY KEY,
145-
user_name TEXT,
146-
game_name TEXT,
147-
title TEXT,
148-
viewer_count INTEGER,
149-
started_at TEXT
144+
channel TEXT PRIMARY KEY,
145+
watch_time INTEGER,
146+
stream_time INTEGER,
147+
peak_viewers INTEGER,
148+
followers INTEGER,
149+
followers_gained INTEGER,
150+
partnered TEXT,
151+
mature TEXT,
152+
language TEXT
150153
);
151154
```
152155

156+
- Channel
157+
- Watch time
158+
- Stream time
159+
- Peak viewers
160+
- Average viewers
161+
- Followers
162+
- Followers gained
163+
- Views gained
164+
- Partnered
165+
- Mature
166+
- Language
167+
153168
These names will have to match the CSV columns as well as the data type here, or else there will be an error later.
154169

155170
### Import CSV into SQLite

0 commit comments

Comments
 (0)