WITH t1 AS (SELECT Views, Count(*) AS n FROM Users GROUP ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

English

Q&A for linguists, etymologists, and serious English language enthusiasts

WITH t1 AS 
 (SELECT Views, Count(*) AS n 
  FROM Users
  GROUP BY Views)
SELECT Views, n, 
       (0.0+n)/(COUNT(*) OVER (PARTITION BY Views))
FROM t1;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results