defi__joshDaily Active Holders of $TITCOIN Over the Last 5 days
    Updated 8 days ago
    with raw as (
    select
    block_timestamp,
    block_timestamp::date as day,
    owner,
    balance
    from solana.core.fact_token_balances
    where block_timestamp::date >= '2025-03-06' -- first mint date
    and mint = 'FtUEW73K6vEYHfbkfpdBZfWpxgQar2HipGdbutEhpump' -- $TITCOIN CA
    qualify row_number() over (partition by day, owner order by block_timestamp desc) = 1 -- Ensuring Only Latest Balance Per Owner Per Day
    ),

    owners as (
    select
    distinct owner as owner
    from raw
    ),

    all_dates as (
    select
    date_day as day
    from crosschain.core.dim_dates
    where date_day::date between '2025-03-14' and '2025-04-02' :: date -- Getting resuts for the last 5 days
    ),

    all_dates_owners as (
    select
    day,
    owner
    from all_dates
    cross join owners
    ),

    daily_join as (
    select
    day,
    Last run: 8 days ago
    day
    no. of active holders
    1
    2025-03-28 00:00:00.0008885
    2
    2025-03-23 00:00:00.0007251
    3
    2025-03-18 00:00:00.0001395
    4
    2025-03-22 00:00:00.0007902
    5
    2025-03-29 00:00:00.00011183
    6
    2025-03-19 00:00:00.0001774
    7
    2025-03-17 00:00:00.0001461
    8
    2025-03-21 00:00:00.0005513
    9
    2025-03-31 00:00:00.00011881
    10
    2025-03-24 00:00:00.0007777
    11
    2025-03-25 00:00:00.0007652
    12
    2025-03-26 00:00:00.0007241
    13
    2025-04-02 00:00:00.00018570
    14
    2025-03-30 00:00:00.00010976
    15
    2025-03-27 00:00:00.0007277
    16
    2025-04-01 00:00:00.00015407
    17
    2025-03-20 00:00:00.0003962
    18
    2025-03-16 00:00:00.0001271
    19
    2025-03-15 00:00:00.000857
    20
    2025-03-14 00:00:00.000482
    20
    664B
    49s