Slide 13
Slide 13 text
42-ͰςʔϒϧΛϚʔδ
w ͭͷςʔϒϧΛVOJPOBMMͰ݁߹͠ɺओΩʔͰ
QBSUJUJPOCZͯ͠৽͍͠ߦͷΈΛબ
w ͜ͷ42-ͷ݁ՌΛݩͷςʔϒϧʹॻ͖͢
select * from (
select
*,
row_number() over (partition by id order by updated_at desc) as rn
from (
select * from tmp.items union all select * from mysql.items
)
)
where rn = 1