各種クエリのレイテンシ検証2 – Inner Join/相関サブクエリ -- Inner Join SELECT t1.c FROM t1 INNER JOIN ON t1.id = t2.id WHERE t1.id BETWEEN 1 AND 1000000; -- Dependent Subquery SELECT t1.id, (SELECT COUNT(*) FROM t2 WHERE t2.id = t1.id) as count FROM t1 WHERE t1.id BETWEEN 1 AND 1000000;