Salehn-p-compare
    Updated 2022-07-20
    with lst_naer as (
    select
    iff( split((split((TX_RECEIPT[0]:outcome:status),':')[0]),'{')[1] ilike '%Success%','Successful','Unsuccessful') as Transaction_status
    ,count(txn_hash) as tx_count
    from flipside_prod_db.mdao_near.transactions
    where block_timestamp::date >= '2022-07-01'
    group by 1
    order by 1
    )
    ,lst_sol as (
    select
    iff(SUCCEEDED,'Successful','Unsuccessful') as Transaction_status
    ,count(DISTINCT tx_id) as tx_count
    from solana.core.fact_transactions
    where block_timestamp::date >= '2022-07-01'
    group by 1
    order by 1
    )
    ,lst_flow as (
    select
    iff(TX_SUCCEEDED=TRUE,'Successful','Unsuccessful') as Success_count
    ,count(DISTINCT tx_id) as tx_count
    from flow.core.fact_transactions
    where block_timestamp::date >= '2021-09-01'
    group by 1
    order by 1
    )
    ,lst_eth as (
    select
    iff(STATUS='SUCCESS','Successful','Unsuccessful') as Transaction_status
    ,count(DISTINCT TX_HASH) as tx_count
    from ethereum.core.fact_transactions
    where block_timestamp::date >= '2022-07-01'
    group by 1
    order by 1
    )
    Run a query to Download Data