Query editor
WITHblock_height as (SELECTMAX(block_height) AS block_countFROMyominet.blocks),recent_transactions AS (SELECTCOUNT(DISTINCT tx_id) AS transactionsFROM yominet.transactions t),one_day_tx as (SELECTCOUNT(DISTINCT tx_id) AS transactions_1dFROM yominet.transactions txLEFT JOIN yominet.blocks b ON b.block_height = tx.block_heightWHERE DATE(b.block_timestamp) >= now() - INTERVAL '1' DAY),seven_day_tx as (SELECTCOUNT(DISTINCT tx_id) AS transactions_7dFROM yominet.transactions txLEFT JOIN yominet.blocks b ON b.block_height = tx.block_heightWHERE DATE(b.block_timestamp) >= now() - INTERVAL '7' DAY),one_month_tx as (SELECTCOUNT(DISTINCT tx_id) AS transactions_30dFROM yominet.transactions txLEFT JOIN yominet.blocks b ON b.block_height = tx.block_heightWHERE DATE(b.block_timestamp) >= now() - INTERVAL '30' DAY)-- ,-- cctp_tx as (-- SELECT-- COUNT(DISTINCT sender) as total_unique_user-- FROM noble.cctp_transactions-- )SELECTblock_height.block_count, recent_transactions.transactions-- , cctp_tx.total_unique_user, one_day_tx.transactions_1d, seven_day_tx.transactions_7d, one_month_tx.transactions_30dFROMblock_height, recent_transactions-- , cctp_tx, one_day_tx, seven_day_tx, one_month_tx