sunshine-juliatab 10 - comparing
Updated 2023-01-01Copy 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
28
29
30
›
⌄
(SELECT --date(osmosis.core.fact_swaps.block_timestamp) as date,
'swapping' as action_type,
count (distinct osmosis.core.fact_swaps.TX_ID) as number_of_transactions
FROM osmosis.core.fact_swaps, osmosis.core.fact_transactions
where trader = tx_from
and tx_from is not NULL)
union ALL
(SELECT --date(osmosis.core.fact_staking.block_timestamp) as date,
'staking' as action_type,
count (distinct osmosis.core.fact_staking.TX_ID) as number_of_transactions
FROM osmosis.core.fact_staking, osmosis.core.fact_transactions
where TX_CALLER_ADDRESS = tx_from
and tx_from is not NULL)
union ALL
(SELECT --date(osmosis.core.fact_liquidity_provider_actions.block_timestamp) as date,
'liquidity providing' as action_type,
count (distinct osmosis.core.fact_liquidity_provider_actions.TX_ID) as number_of_transactions
FROM osmosis.core.fact_liquidity_provider_actions, osmosis.core.fact_transactions
where LIQUIDITY_PROVIDER_ADDRESS = tx_from
and tx_from is not NULL)
union ALL
(SELECT --date(osmosis.core.fact_transfers.block_timestamp) as date,
'transfering' as action_type,
count (distinct osmosis.core.fact_transfers.TX_ID) as number_of_transactions
FROM osmosis.core.fact_transfers, osmosis.core.fact_transactions
where SENDER = tx_from
and tx_from is not NULL)
Run a query to Download Data