Utility
Overview
Number and calendar tables to aid analyses.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Number and calendar tables to aid analyses.
-- Daily USDC transfer count on Ethereum, including days with no transfers
select d.date_timestamp as date, count(t.unique_id) as transfers
from common.utility.dates d
left join ethereum.assets.erc20_token_transfers t
on t.block_timestamp::date = d.date_timestamp
and t.token_address = '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
and t.block_timestamp >= current_date - 7
where d.date_timestamp between current_date - 7 and current_date - 1
group by 1
order by 1
| Table | Description |
|---|---|
| Numbers | A utility table containing sequential numbers from 0 to 1 billion. for use in analytical queries and data generation. |
| Dates | Calendar dimension table with one row per day. Provides date parts (year, quarter, month, week, day), fiscal calendar fields, and convenience columns for time-series joins and date arithmetic. |
| Hours | Hour-level dimension table with one row per hour (UTC). Provides time-of-day attributes including hour-of-day, AM/PM, day part, and business hours flag for time series analysis. |
| 5-Minute Intervals | 5-minute interval dimension table with one row per 5-minute interval (UTC). Used for joining to 5-minute price data or other sub-hourly time series. |
Was this page helpful?