vendettaUntitled Query
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
with join_Pool as (
SELECT ACTION,
count(TX_STATUS) as transaction_Number
FROM osmosis.core.fact_liquidity_provider_actions
WHERE TX_STATUS LIKE 'SUCCEEDED'
GROUP by ACTION
ORDER BY transaction_Number DESC
),
swaps AS(
SELECT 'swap' as action,
COUNT(TX_ID) transaction_Number
FROM osmosis.core.fact_swaps
WHERE TX_STATUS = 'SUCCEEDED'
)
SELECT *
FROM join_Pool
UNION ALL
SELECT *
FROM swaps
ORDER BY TRANSACTION_NUMBER DES
Run a query to Download Data