ayo_hendrixxCurrency Usage
Updated 2024-07-09
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
WITH currency_usage AS (
SELECT
TRUNC(block_timestamp, 'week') AS date,
currency,
SUM(price) AS total_value
FROM
flow.nft.ez_nft_sales
WHERE tx_succeeded = TRUE
GROUP BY TRUNC(block_timestamp, 'week'), currency
)
SELECT *
FROM currency_usage
WHERE date < TRUNC(CURRENT_DATE, 'hour')
ORDER BY date ASC;
QueryRunArchived: QueryRun has been archived