SELECT Users.Location, Tags.TagName, COUNT(*) as PostCount,

0

Please login or register to vote for this query.

(click on this box to dismiss)

Artificial Intelligence Meta

Q&A about the site for people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment

SELECT
Users.Location,
Tags.TagName,
COUNT(*) as PostCount,
AVG(CAST(Posts.Score as FLOAT)) as AvgScore,
SUM(Posts.ViewCount) as TotalViews
FROM Posts
LEFT JOIN PostTags ON Posts.Id = PostTags.PostId
LEFT JOIN Tags ON PostTags.TagId = Tags.Id
LEFT JOIN Users ON Users.Id = Posts.OwnerUserId
WHERE Posts.CreationDate >= DATEADD(YEAR, -2, GETDATE())
AND Posts.PostTypeId = 1 
AND TagName Like 'Expedia'
GROUP BY Users.Location, Tags.TagName
HAVING COUNT(*) > 1
ORDER BY PostCount DESC;

Enter Parameters

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