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
WITH timestamp_measurement AS (SELECTcount(t1.id) AS count_num
, date_trunc('month', t1.start_date) AStimestampFROM trip AS t1
GROUP BYtimestamp)
SELECTt2.timestampAStimestamp
, avg(t2.count_num) OVER (ORDER BYt2.timestampASC RANGE BETWEEN '3 months' PRECEDING AND CURRENT ROW) AS moving_count_num
FROM timestamp_measurement AS t2
The text was updated successfully, but these errors were encountered: