Blaze2024-01-31 03:34 PM
    Updated 2024-02-07
    -- select * from external.defillama.fact_chain_tvl
    -- where chain in ('Ethereum', 'Solana')
    select * from
    (select
    date,
    tvl_usd as sol
    from external.defillama.fact_chain_tvl
    where chain ='Solana'
    and date_trunc('month',date) >date_trunc('month',CURRENT_TIMESTAMP) - interval '12 months'
    ) as t1

    join

    (select
    date,
    tvl_usd as eth
    from external.defillama.fact_chain_tvl
    where chain ='Ethereum'
    and date_trunc('month',date) >date_trunc('month',CURRENT_TIMESTAMP) - interval '12 months'
    ) as t2
    using(date)


    Last run: about 1 year ago
    DATE
    SOL
    ETH
    1
    2024-02-04 00:00:00.000361628419173724075082
    2
    2024-02-05 00:00:00.000365325047874458403977
    3
    2024-02-06 00:00:00.000362392568076434887305
    4
    2024-02-02 00:00:00.000371653025673537652548
    5
    2024-02-03 00:00:00.000360687317673719741868
    6
    2024-02-01 00:00:00.000350591976571576353251
    7
    2024-01-31 00:00:00.000353130381172209978590
    8
    2024-01-30 00:00:00.000367349589973009132615
    9
    2024-01-29 00:00:00.000346187408071428004946
    10
    2024-01-28 00:00:00.000337347034871912537752
    11
    2024-01-24 00:00:00.000297276432870000728545
    12
    2024-01-23 00:00:00.000282688543569169071844
    13
    2024-01-21 00:00:00.000315782407275279551535
    14
    2024-01-19 00:00:00.000317129509675332656044
    15
    2024-01-18 00:00:00.000330682848276044088792
    16
    2024-01-17 00:00:00.000333262025275915331333
    17
    2024-01-15 00:00:00.000317683371376062260221
    18
    2024-01-16 00:00:00.000321450206175772603826
    19
    2024-01-09 00:00:00.000328719685269085704614
    20
    2024-01-08 00:00:00.000299024238567361845914
    ...
    344
    17KB
    2s