Number of Questions/Users, who at least asked one question

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

SELECT
    distinct Users.Id, Posts.PostTypeId,Posts.CreationDate ,
    Count(Posts.Id) AS Questiones    
FROM
    Posts
INNER JOIN
    Users ON Users.Id = OwnerUserId
WHERE
     PostTypeId = 1 AND Posts.CreationDate <='2022-12-04'
  
GROUP BY
    Users.Id , Posts.PostTypeId,Posts.CreationDate 

ORDER BY
   Posts.CreationDate  DESC

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results