SELECT CAST(CreationDate AS Date), 1.0 * SUM(CASE WHEN Di...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT 
  CAST(CreationDate AS Date),
  1.0 * SUM(CASE WHEN DisplayName LIKE 'user%' THEN 1 ELSE 0 END) / COUNT(*) 'Percent of Users with no name'
FROM Users
WHERE CreationDate > '2012-01-01'
GROUP BY CAST(CreationDate AS Date)
ORDER BY CAST(CreationDate AS Date)

Enter Parameters

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