Query editor
selectcoalesce(offer.created_date, loan.created_date) as created_date,coalesce(offer.network, loan.network) as network,(case when offer.amount is null then 0 else offer.amount end) as offer_amount,(case when loan.amount is null then 0 else loan.amount end) as loan_amount,((case when offer.amount is null then 0 else offer.amount end) + (case when loan.amount is null then 0 else loan.amount end) * 1.5) as tvlfrom dune.ensofi_xyz.dataset_tvl_offer offerfull outer join dune.ensofi_xyz.dataset_tvl_loan loan on offer.created_date = loan.created_date and offer.network = loan.networkorder by created_date