MrftiSolana success rate
    Updated 2022-07-14
    WITH tbl1 AS (
    SELECT count(tx_id) AS tx , date_trunc(day, block_timestamp) as DATE
    FROM solana.core.fact_transactions
    WHERE succeeded = 'true'
    AND date >= '2022-01-01'
    group by DATE
    order by date) ,
    tbl2 as (
    SELECT count(tx_id) AS all_tx , date_trunc(day, block_timestamp) as DATE1
    FROM solana.core.fact_transactions
    WHERE date1 >= '2022-01-01'
    group by DATE1
    order by date1)

    SELECT tx/all_tx AS success_rate , date
    FROM tbl1
    JOIN tbl2 ON date=date1
    ORDER BY date
    Run a query to Download Data