SELECT * FROM Posts

0

Please login or register to vote for this query.

(click on this box to dismiss)

ExpressionEngine® Answers

Q&A for administrators, end users, developers and designers for ExpressionEngine® CMS

SELECT TOP 10 Id,Title, ViewCount 
FROM Posts WHERE Id  IN (select top 100  Id  
                       from Posts 
                       GROUP BY Id, ViewCount
                       order by sum(ViewCount) desc) 
order by ViewCount desc

Enter Parameters

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