Q&A for Ubuntu users and developers
SELECT TOP 1000 Posts.Id, Count(Comments.Id) AS AnzahlKommentare FROM Posts Left JOIN Comments ON Comments.PostId = Posts.Id GROUP BY Posts.Id ORDER BY AnzahlKommentare DESC