InClass

0

Please login or register to vote for this query.

(click on this box to dismiss)

CiviCRM

Q&A for administrators and users of the CiviCRM Constituent Relationship Management software

/*SELECT COUNT(*) AS IncompleteProfiles
FROM Users
WHERE WebsiteUrl IS NULL 
OR 
Location IS NULL 
*/

/*SELECT *
FROM PostTypes
WHERE Name = 'Question';
*/

SELECT COUNT(DISTINCT u.Id) AS UsersWithoutQuestions
FROM Users u
LEFT JOIN Posts p ON u.Id = p.OwnerUserId AND p.PostTypeId = 1 AND YEAR(p.CreationDate) = 2015
WHERE p.Id IS NULL

Enter Parameters

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