回答編集履歴
1
追記
answer
CHANGED
@@ -6,4 +6,16 @@
|
|
6
6
|
WHERE
|
7
7
|
A.to_address= '0x6ebeaf8e8e946f0716e6533a6f2cefc83f60e8ab'
|
8
8
|
OR A.to_address='0x91b9d2835ad914bc1dcfe09bd1816febd04fd689'
|
9
|
+
```
|
10
|
+
追記
|
11
|
+
--
|
12
|
+
to_addressが限定されるなら相関副問合せの方が高速だと思います。
|
13
|
+
```SQL
|
14
|
+
SELECT *
|
15
|
+
FROM `bigquery-public-data.ethereum_blockchain.transactions` A
|
16
|
+
WHERE to_address in('0x6ebeaf8e8e946f0716e6533a6f2cefc83f60e8ab','0x91b9d2835ad914bc1dcfe09bd1816febd04fd689')
|
17
|
+
and not exists(
|
18
|
+
select 1 from `bigquery-public-data.ethereum_blockchain.transactions`
|
19
|
+
where to_address=A.to_address and block_timestamp>A.block_timestamp
|
20
|
+
)
|
9
21
|
```
|