mamad-5XN3k3Klaytn 3
    Updated 10 days ago
    with new_usert as (
    select
    date_trunc('week',first_date) as date,
    count (distinct user) as new_users
    from(
    select
    distinct from_address as user,
    min(block_Timestamp) as first_date
    from kaia.core.fact_transactions
    group by 1)
    group by 1
    ),

    usert as (
    select
    date_trunc('week',block_Timestamp) as date,
    count(distinct from_address) as users
    from kaia.core.fact_transactions
    group by 1)

    select
    date,
    users,
    new_users
    from usert
    left join new_usert using (date)
    where date < current_date
    order by 1 asc




    Last run: 10 days ago
    DATE
    USERS
    NEW_USERS
    1
    2019-06-24 00:00:00.000495495
    2
    2019-07-01 00:00:00.00030122822
    3
    2019-07-08 00:00:00.00056373598
    4
    2019-07-15 00:00:00.000105947224
    5
    2019-07-22 00:00:00.000100644531
    6
    2019-07-29 00:00:00.000125165061
    7
    2019-08-05 00:00:00.000159247826
    8
    2019-08-12 00:00:00.000119115472
    9
    2019-08-19 00:00:00.000254576248833
    10
    2019-08-26 00:00:00.0003703130590
    11
    2019-09-02 00:00:00.000127586119556
    12
    2019-09-09 00:00:00.0008927979097
    13
    2019-09-16 00:00:00.000168287563
    14
    2019-09-23 00:00:00.000115328106988
    15
    2019-09-30 00:00:00.000212669979
    16
    2019-10-07 00:00:00.0005653045406
    17
    2019-10-14 00:00:00.00010037884805
    18
    2019-10-21 00:00:00.00012398098528
    19
    2019-10-28 00:00:00.000311018289926
    20
    2019-11-04 00:00:00.000574322545989
    ...
    304
    12KB
    126s