kuroの覚え書き

96の個人的覚え書き

select count distinct

重複せずに行を数えるには

SELECT COUNT(DICTINCT column) FROM table

http://d.hatena.ne.jp/nyoe3/20100313/1268468670