ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Please like and subscribe for more interesting SQL interview questions and answers.🙏
SELECT user_id,tweet_date,ROUND(AVG(tweet_count) OVER(PARTITION BY user_id ORDER BY tweet_date ROWS BETWEEN 2 Preceding AND 0 following),2) as average_3_day_rolling FROM tweet_data;
Git Repo?
I provided the SQL script in the description.
Please like and subscribe for more interesting SQL interview questions and answers.🙏
SELECT user_id,
tweet_date,
ROUND(AVG(tweet_count) OVER(PARTITION BY user_id ORDER BY tweet_date ROWS BETWEEN 2 Preceding AND 0 following),2) as average_3_day_rolling
FROM tweet_data;
Git Repo?
I provided the SQL script in the description.