feyikemiAssignment 2
Updated 2024-03-10
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
-- Using the ez_dex_swaps and ethereum.core.dim_labels table in the Ethereum database
-- Find the names of the top 10 contracts in uniswap by USD amount received
SELECT
address_name,
platform,
symbol_in,
amount_in_usd
FROM ethereum.defi.ez_dex_swaps s
JOIN ethereum.core.dim_labels l
ON s.contract_address = l.address
WHERE platform LIKE 'uniswap%'
AND amount_in_usd IS NOT NULL
ORDER BY 4 DESC
LIMIT 10
QueryRunArchived: QueryRun has been archived