Q&A about the site for SharePoint enthusiasts
SELECT Users.Location, COUNT(*) AS QuestionCount FROM Users JOIN Posts ON Users.Id = Posts.OwnerUserId WHERE Users.Location IS NOT NULL GROUP BY Users.Location ORDER BY QuestionCount DESC; SELECT Posts.Title, Posts.Score, Posts.ViewCount, Posts.AnswerCount, 'https://travel.stackexchange.com/questions/' + CAST(Posts.Id as VARCHAR) as QuestionURL FROM Posts LEFT JOIN PostTags ON Posts.Id = PostTags.PostId LEFT JOIN Tags ON PostTags.TagId = Tags.Id WHERE Tags.TagName IN ('vacation-rentals', 'apartments', 'airbnb') AND Posts.PostTypeId = 1 AND Posts.Score > 5 ORDER BY Posts.Score DESC;