単なるメモ。
---【2013/11/21 追記】---
確か IN + サブクエリ は EXISTS に置き換わるんじゃなかったっけ?
JOIN とかでやったほうがいいかもね。
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
SELECT t1.user_id, MAX(t1.point) AS m FROM tb_test AS t1 WHERE t1.user_id IN (SELECT t2.user_id FROM tb_test AS t2 GROUP BY t2.user_id HAVING COUNT(t2.id) > 100) GROUP BY t1.user_id ORDER BY m DESC;