You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DELETEFROM article WHERE rowid not in (selectmin(rowid) from article group by url);
6
7
```
8
+
9
+
## Get all read article titles from a user
10
+
11
+
```sql
12
+
select title from article join userarticlelink onarticle.id=userarticlelink.article_idjoin user onuserarticlelink.user_id=user.idwhereuser.id='USERID';
13
+
```
14
+
15
+
## User stats including how many days they have been active
16
+
17
+
```sql
18
+
select id, created_at, last_request, Cast ((
19
+
JulianDay(last_request) - JulianDay(created_at)
20
+
) AsInteger) from user order by last_request ;
21
+
```
22
+
23
+
## Get all feeds for a user
24
+
25
+
```sql
26
+
select title, url from feed join userfeedlink onfeed.id=userfeedlink.feed_idjoin user onuserfeedlink.user_id=user.idwhereuser.id='USERID';
27
+
```
28
+
29
+
## Get all read articles for a user
30
+
31
+
```sql
32
+
select title, url from article join userarticlelink onarticle.id=userarticlelink.article_idjoin user onuserarticlelink.user_id=user.idwhereuser.id='USERID';
0 commit comments