111 lines
2.0 KiB
SQL
111 lines
2.0 KiB
SQL
INSERT INTO twitch_revenue
|
|
( date
|
|
, ad_break_minutes
|
|
, ad_time_seconds_per_hour
|
|
, average_viewers
|
|
, chat_messages
|
|
, chatters
|
|
, clip_views
|
|
, clips_created
|
|
, follows
|
|
, hosts_and_raids_viewers
|
|
, live_views
|
|
, max_viewers
|
|
, minutes_watched
|
|
, minutes_streamed
|
|
, unique_viewers
|
|
, sub_revenue
|
|
, prime_revenue
|
|
, gifted_subs_revenue
|
|
, multi_month_gifted_subs_revenue
|
|
, bits_revenue
|
|
, ad_revenue
|
|
, game_sales_revenue
|
|
, extensions_revenue
|
|
, bounties_revenue
|
|
, prime_subs
|
|
, total_paid_subs
|
|
, tier_one_subs
|
|
, total_gifted_subs
|
|
, gifted_tier_one_subs
|
|
, gifted_tier_two_subs
|
|
, gifted_tier_three_subs
|
|
, total_multi_month_gifted_subs
|
|
, multi_month_gifted_tier_one_subs
|
|
, multi_month_gifted_tier_two_subs
|
|
, multi_month_gifted_tier_three_subs
|
|
)
|
|
VALUES
|
|
( ?1
|
|
, ?2
|
|
, ?3
|
|
, ?4
|
|
, ?5
|
|
, ?6
|
|
, ?7
|
|
, ?8
|
|
, ?9
|
|
, ?10
|
|
, ?11
|
|
, ?12
|
|
, ?13
|
|
, ?14
|
|
, ?15
|
|
, ?16
|
|
, ?17
|
|
, ?18
|
|
, ?19
|
|
, ?20
|
|
, ?21
|
|
, ?22
|
|
, ?23
|
|
, ?24
|
|
, ?25
|
|
, ?26
|
|
, ?27
|
|
, ?28
|
|
, ?29
|
|
, ?30
|
|
, ?31
|
|
, ?32
|
|
, ?33
|
|
, ?34
|
|
, ?35
|
|
)
|
|
ON CONFLICT DO
|
|
UPDATE SET
|
|
ad_break_minutes = ?2
|
|
, ad_time_seconds_per_hour = ?3
|
|
, average_viewers = ?4
|
|
, chat_messages = ?5
|
|
, chatters = ?6
|
|
, clip_views = ?7
|
|
, clips_created = ?8
|
|
, follows = ?9
|
|
, hosts_and_raids_viewers = ?10
|
|
, live_views = ?11
|
|
, max_viewers = ?12
|
|
, minutes_watched = ?13
|
|
, minutes_streamed = ?14
|
|
, unique_viewers = ?15
|
|
, sub_revenue = ?16
|
|
, prime_revenue = ?17
|
|
, gifted_subs_revenue = ?18
|
|
, multi_month_gifted_subs_revenue = ?19
|
|
, bits_revenue = ?20
|
|
, ad_revenue = ?21
|
|
, game_sales_revenue = ?22
|
|
, extensions_revenue = ?23
|
|
, bounties_revenue = ?24
|
|
, prime_subs = ?25
|
|
, total_paid_subs = ?26
|
|
, tier_one_subs = ?27
|
|
, total_gifted_subs = ?28
|
|
, gifted_tier_one_subs = ?29
|
|
, gifted_tier_two_subs = ?30
|
|
, gifted_tier_three_subs = ?31
|
|
, total_multi_month_gifted_subs = ?32
|
|
, multi_month_gifted_tier_one_subs = ?33
|
|
, multi_month_gifted_tier_two_subs = ?34
|
|
, multi_month_gifted_tier_three_subs = ?35
|