Func1

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS Meta

Q&A about the site for administrators, end users, developers and designers for Craft CMS

SELECT
  CAST(CreationDate AS DATE) AS CDate,
  COUNT(q.Id) AS CCount,
  SUM(Case When q.DeletionDate IS NULL Then 1 Else 0 End) AS CCountND
FROM PostsWithDeleted q
WHERE (q.PostTypeId=1)
---only questions  
GROUP BY CAST(CreationDate AS DATE)

Enter Parameters

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