Show top posts by views since last year

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

-- show top posts by views since last year
SELECT TOP 50 Title, ViewCount, Score, Tags, CommentCount
FROM Posts
WHERE CreationDate > DATEADD(year, -1, GETDATE())
--AND Tags IN ('PowerShell', 'SQL-Server', 'ssms')
ORDER BY ViewCount DESC;

Enter Parameters

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