2015-08-28 71 views

回答

2

讓我們的排名爲每個帖子按時間發佈的評論,看看在第1和第1000個,採取由兩個和訂單之間的時間差:

SELECT link_id, FIRST(IF(rank=1000,created_utc,null)) - FIRST(IF(rank=1,created_utc,null)) thousand 
FROM (
    SELECT link_id, created_utc, RANK() OVER(PARTITION BY link_id ORDER BY created_utc) rank 
    FROM [fh-bigquery:reddit_comments.2015_07] 
) 
WHERE rank=1000 OR rank=1 
GROUP BY link_id 
HAVING NOT thousand IS null 
ORDER BY thousand 

最快:

https://www.reddit.com/r/leagueoflegends/comments/3epmvx/spoiler_team_liquid_vs_team_impulse_na_lcs_2015/[1]

最慢:

https://www.reddit.com/r/Lollapalooza/comments/3054px/official_2015_rlollapalooza_ticket_resale_thread/[2]

第3位:

https://www.reddit.com/r/announcements/comments/3djjxw/lets_talk_content_ama/[3]