Drsimoneth vs sol daily nft sales
    Updated 2023-01-08
    with eth as (
    select
    date_trunc('day',BLOCK_TIMESTAMP) AS day,
    sum(Price) AS total_eth,
    sum(total_eth) over (order by day) AS Cum_eth
    from ethereum.core.ez_nft_sales
    where Price is not NULL
    and day >= '2022-08-01'
    group by 1
    --order by 1
    ) ,
    sol as (
    select
    date_trunc('day',BLOCK_TIMESTAMP) AS day,
    sum(SALES_AMOUNT)AS total_sol,
    sum(total_sol) over (order by day) AS Cum_sol
    from solana.core.fact_nft_sales
    where SALES_AMOUNT is not NULL
    and day >= '2022-08-01'
    group by 1
    --order by 1
    )
    select
    s.day ,
    e.total_eth --/ 1e18 as total_eth
    , e.Cum_eth ,
    s.total_sol , s.Cum_sol
    from eth e
    full outer join sol s
    on e.day = s.day

    order by 1 DESC


    Run a query to Download Data