Afonso_DiazPeak Days of the Week
    Updated 2025-05-07
    with main as (
    select
    tx_hash,
    block_timestamp,
    project_name,
    buyer_address,
    seller_address,
    platform_fee_usd,
    total_price_usd as price_usd,
    platform_name
    from
    aptos.nft.ez_nft_sales
    where
    platform_exchange_version ilike 'tradeport%'
    )

    select
    case
    when extract(dow from block_timestamp) = 0 then 'Sunday'
    when extract(dow from block_timestamp) = 1 then 'Monday'
    when extract(dow from block_timestamp) = 2 then 'Tuesday'
    when extract(dow from block_timestamp) = 3 then 'Wednesday'
    when extract(dow from block_timestamp) = 4 then 'Thursday'
    when extract(dow from block_timestamp) = 5 then 'Friday'
    when extract(dow from block_timestamp) = 6 then 'Saturday'
    end as transaction_day_of_week,
    count(tx_hash) as transaction_count
    from
    main
    group by
    transaction_day_of_week
    order by
    transaction_day_of_week
    QueryRunArchived: QueryRun has been archived