回答編集履歴
1
追記
test
CHANGED
@@ -15,3 +15,27 @@
|
|
15
15
|
OR A.to_address='0x91b9d2835ad914bc1dcfe09bd1816febd04fd689'
|
16
16
|
|
17
17
|
```
|
18
|
+
|
19
|
+
追記
|
20
|
+
|
21
|
+
--
|
22
|
+
|
23
|
+
to_addressが限定されるなら相関副問合せの方が高速だと思います。
|
24
|
+
|
25
|
+
```SQL
|
26
|
+
|
27
|
+
SELECT *
|
28
|
+
|
29
|
+
FROM `bigquery-public-data.ethereum_blockchain.transactions` A
|
30
|
+
|
31
|
+
WHERE to_address in('0x6ebeaf8e8e946f0716e6533a6f2cefc83f60e8ab','0x91b9d2835ad914bc1dcfe09bd1816febd04fd689')
|
32
|
+
|
33
|
+
and not exists(
|
34
|
+
|
35
|
+
select 1 from `bigquery-public-data.ethereum_blockchain.transactions`
|
36
|
+
|
37
|
+
where to_address=A.to_address and block_timestamp>A.block_timestamp
|
38
|
+
|
39
|
+
)
|
40
|
+
|
41
|
+
```
|