You should get the number of DISTINCT users for each screen width, and here is an example query that will retrieve the results.
Click here to view demo in SQL Fiddle
Script:
CREATE TABLE screenwidth
(
id INT NOT NULL
, user_id INT NOT NULL
, screenwidth INT NOT NULL
);
INSERT INTO screenwidth (id, user_id, screenwidth) VALUES
(1, 1, 1366),
(2, 1, 1366),
(3, 1, 1366),
(4, 1, 1366),
(5, 2, 1920),
(6, 2, 1920),
(7, 3, 1920),
(8, 4, 1280),
(9, 5, 1280),
(10, 6, 1280);
SELECT screenwidth
, COUNT(DISTINCT user_id) AS screenwidthcount
FROM screenwidth
GROUP BY screenwidth
ORDER BY screenwidthcount;
Conclusion:
SCREENWIDTH SCREENWIDTHCOUNT
----------- ----------------
1366 1
1920 2
1280 3
user756519