headitmanagerTotal Count over time
    Updated 2022-07-23
    with total_volume as (select sum(price),play_type from flow.core.fact_nft_sales inner join flow.core.dim_topshot_metadata
    on flow.core.dim_topshot_metadata.nft_id=flow.core.fact_nft_sales.nft_id
    where flow.core.fact_nft_sales.nft_collection='A.0b2a3299cc857e29.TopShot'
    group by play_type)
    , total_count as (select count(price),play_type from flow.core.fact_nft_sales inner join flow.core.dim_topshot_metadata
    on flow.core.dim_topshot_metadata.nft_id=flow.core.fact_nft_sales.nft_id
    where flow.core.fact_nft_sales.nft_collection='A.0b2a3299cc857e29.TopShot'
    group by play_type)
    , total_unique_buyer as (select count(distinct buyer),play_type from flow.core.fact_nft_sales inner join flow.core.dim_topshot_metadata
    on flow.core.dim_topshot_metadata.nft_id=flow.core.fact_nft_sales.nft_id
    where flow.core.fact_nft_sales.nft_collection='A.0b2a3299cc857e29.TopShot'
    group by play_type)
    , total_unique_seller as (select count(distinct seller),play_type from flow.core.fact_nft_sales inner join flow.core.dim_topshot_metadata
    on flow.core.dim_topshot_metadata.nft_id=flow.core.fact_nft_sales.nft_id
    where flow.core.fact_nft_sales.nft_collection='A.0b2a3299cc857e29.TopShot'
    group by play_type)
    ,total_volume_overtime as (select sum(price),play_type,block_timestamp::date from flow.core.fact_nft_sales inner join flow.core.dim_topshot_metadata
    on flow.core.dim_topshot_metadata.nft_id=flow.core.fact_nft_sales.nft_id
    where flow.core.fact_nft_sales.nft_collection='A.0b2a3299cc857e29.TopShot'
    group by play_type,block_timestamp::date)
    ,total_count_overtime as (select count(price),play_type,block_timestamp::date from flow.core.fact_nft_sales inner join flow.core.dim_topshot_metadata
    on flow.core.dim_topshot_metadata.nft_id=flow.core.fact_nft_sales.nft_id
    where flow.core.fact_nft_sales.nft_collection='A.0b2a3299cc857e29.TopShot'
    group by play_type,block_timestamp::date)
    , total_unique_buyer_overtime as (select count(distinct buyer),play_type,block_timestamp::date from flow.core.fact_nft_sales inner join flow.core.dim_topshot_metadata
    on flow.core.dim_topshot_metadata.nft_id=flow.core.fact_nft_sales.nft_id
    where flow.core.fact_nft_sales.nft_collection='A.0b2a3299cc857e29.TopShot'
    group by play_type,block_timestamp::date)
    , total_unique_seller_overtime as (select count(distinct seller),play_type,block_timestamp::date from flow.core.fact_nft_sales inner join flow.core.dim_topshot_metadata
    on flow.core.dim_topshot_metadata.nft_id=flow.core.fact_nft_sales.nft_id
    where flow.core.fact_nft_sales.nft_collection='A.0b2a3299cc857e29.TopShot'
    group by play_type,block_timestamp::date)
    select * from total_count_overtime
    Run a query to Download Data