RsD0p9BK
12/7/2016 - 4:25 AM

sql__count_distinct.sql

-- How to use count and group by at the same select statement

select COUNT(distinct user_id) from answers_votes where answer_id in (694,695);

-- http://www.sql.ru/forum/354933/v-odnom-zaprose-sum-count-pole
-- http://stackoverflow.com/questions/2722408/how-to-use-count-and-group-by-at-the-same-select-statement