Fifth 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 10 U.DisplayName, (SELECT Posts.ViewCount
                             FROM Posts
                             WHERE U.Id = Posts.Id
                             GROUP BY Posts.ViewCount
                             HAVING Posts.ViewCount > AVG(Posts.ViewCount)/2)
FROM Users AS U;

Enter Parameters

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