Skip to content

Commit 18fe95a

Browse files
committed
Add PostViews example query
1 parent d0a10c6 commit 18fe95a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#standardsql
2+
SELECT pv_outer.*, ViewCount-(
3+
SELECT MIN(ViewCount)
4+
FROM `sotorrent-org.2019_12_25.PostViews` pv_inner
5+
WHERE PostId=3758606) AS ViewCountSince2016_09
6+
FROM `sotorrent-org.2019_12_25.PostViews` pv_outer
7+
WHERE PostId=3758606
8+
ORDER BY Version DESC;

0 commit comments

Comments
 (0)