LittlerDataFlow arriving dates
Updated 2023-01-05Copy Reference Fork
99
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
36
›
⌄
with joytx as (
select
distinct tx_id as tx_id
from flow.core.fact_events
where event_type = 'AccountCreated'
and event_contract = 'A.ecfad18ba9582d4f.JoyrideAccounts'
),
flow as (
select
date_trunc('day',block_timestamp) as date
,count(distinct tx_id) as Flow
from flow.core.fact_events
where event_type = 'AccountCreated'
and tx_id not in (select tx_id from joytx)
group by date
),
Joyride as (
select
date_trunc('day',block_timestamp) as dated
,count(distinct tx_id) as Joyride
from flow.core.fact_events
where event_type = 'AccountCreated'
and event_contract = 'A.ecfad18ba9582d4f.JoyrideAccounts'
group by dated, event_contract
),
almost as(
select
date
,Joyride
,Flow
,sum(coalesce(joyride, 0 ) + flow) as Total_New_users
from Flow
left join Joyride on joyride.dated = flow.date
Run a query to Download Data