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