binhachon1M New Algorand Wallets In May - #1
    Updated 2022-05-19
    with min_block as (
    select
    min(block_id) as min_block
    from flipside_prod_db.algorand.block
    where block_timestamp::date = '2022-05-04'
    ),
    max_block as (
    select
    max(block_id) as max_block
    from flipside_prod_db.algorand.block
    where block_timestamp::date = '2022-05-10'
    ),
    wallet_balance as (
    select
    address,
    balance
    from flipside_prod_db.algorand.account
    left join min_block
    left join max_block
    where created_at >= min_block
    and created_at <= max_block
    )
    select
    floor(balance, -2)::string as rounded_balance,
    count(*) as frequency,
    sum(frequency) over () as total_wallets,
    100 * ratio_to_report(frequency) over () as perc
    from wallet_balance
    group by 1
    Run a query to Download Data