forgashUntitled Query
Updated 2023-01-18Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
›
⌄
with
sweat_receivers as (
select
tx_receiver,
min(block_timestamp) as first_reciept_date
from near.core.fact_transactions
where tx_status = 'Success'
and block_timestamp::date between '2022-05-01' and '2022-12-31'
and tx_signer = 'sweat_welcome.near'
group by 1
),
new_signers as (
SELECT
tx_signer,
min(block_timestamp) as first_signing_date
FROM near.core.fact_transactions
WHERE tx_status = 'Success'
AND block_timestamp::DATE >= '2022-09-01'
AND block_timestamp::DATE <= '2022-12-31'
and tx_signer in (select tx_receiver from sweat_receivers)
GROUP BY 1
)
select
*
from new_signers
limit 10
Run a query to Download Data