Query editor
WITH all_traces AS (SELECTtx_hash,block_time,l.name,"from" as from_addressFROM base.traces tINNER JOIN query_4780995 lON l.address = t."to"AND block_time >= timestamp '2024-08-01'WHERE l.name IN ('cNGN', 'NGNC') -- Updated with correct capitalization)SELECTdate_trunc('week', block_time) as week,name,COUNT(DISTINCT tx_hash) as num_txns,COUNT(DISTINCT from_address) as transacting_addressesFROM all_tracesGROUP BY 1, 2ORDER BY 1, 2 -- Order by week and name