Query editor
WITH dataset AS (SELECTtotal_gas_spent,COALESCE(paymasters_gas_spend, 0) AS Paymasters_gas_spend, -- Remplace NULL par 0COALESCE(zyfi_gas_spend, 0) AS Zyfi_gas_spend -- Remplace NULL par 0FROMdune.zyfi.result_compare_zk_sync_total_fees_paymaster_fees_and_zyfi_feesWHERE user_addresse = {{wallet_param}})SELECT * FROM datasetUNION ALLSELECT 0, 0, 0WHERE NOT EXISTS (SELECT 1FROM dataset)