krátké a jednoduché:použijte COUNT DISTINCT
:
SELECT
screenWidth,
COUNT(DISTINCT user_id)
FROM
mytable
GROUP BY
screenWidth;
krátké a jednoduché:použijte COUNT DISTINCT
:
SELECT
screenWidth,
COUNT(DISTINCT user_id)
FROM
mytable
GROUP BY
screenWidth;