Top posts from users who never come back/are unregistered

0

Please login or register to vote for this query.

(click on this box to dismiss)

Joomla

Q&A for Joomla! administrators, users, developers and designers

SELECT SUM(p.ViewCount) FROM Posts p 
LEFT JOIN USERS u ON p.OwnerUserId = u.id 
WHERE P.PostTypeId = 1 
AND DATEDIFF(hour, u.CreationDate, u.LastAccessDate) <= 1
AND p.Score > 5

Enter Parameters

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