Third Question

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 TOP 20 U.DisplayName, SUM(P.ViewCount) AS TotalViews
FROM Users AS U INNER JOIN Posts AS P
ON P.Id = U.Id
GROUP BY U.DisplayName
ORDER BY SUM(P.ViewCount) DESC

Enter Parameters

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