adambaladoodles140
    Updated 2023-01-30
    with eth as
    (select
    BLOCK_TIMESTAMP ::date as date ,
    CREATOR_FEE ,
    PRICE ,
    PLATFORM_NAME
    from
    ethereum.core.ez_nft_sales where CURRENCY_ADDRESS='ETH' and EVENT_TYPE='sale' and
    lower(NFT_ADDRESS)=lower('0x8a90CAb2b38dba80c64b7734e58Ee1dB38B8992e')
    )

    , ethh as (select
    date ,
    sum(CREATOR_FEE) as CREATOR_FEEs ,
    sum(PRICE) as PRICEs ,PLATFORM_NAME
    from eth group by 1,PLATFORM_NAME)

    select date , (CREATOR_FEEs/PRICEs) *100 as "creator fee %" ,PLATFORM_NAME
    from ethh


    Run a query to Download Data