Query editor
with supply as (select time,contract_address,symbol,amountfrom dune."21co".result_stablecoin_total_supply_on_ethereum),price as (select date_trunc('day',minute) as day, contract_address, symbol, avg(price) as pricefrom prices.usd where minute >= date('2021-01-01')and contract_address in (select distinct contract_address from supply) and blockchain = 'ethereum'group by 1,2,3union allselect day, contract_address, symbol, pricefrom dune."21co".result_stablecoin_missing_price),custom_table as (select category, symbolfrom query_3808604 -- Stablecoins Overview Tablewhere blockchain = 'ethereum'),summary as (select a.time, a.symbol, amount*price as market_capfrom supply aleft join price b on a.time = b.day and a.contract_address = b.contract_address),final as (select *, b.categoryfrom summary ajoin custom_table b on a.symbol = b.symbol)select *from final where market_cap is not nullorder by 1 desc