SELECT Tags.TagName, COUNT(*) as IssueCount, AVG(CAST(Pos...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Chinese Language

Q&A for students, teachers, and linguists wanting to discuss the finer points of the Chinese language

-- Query 11: Cross-Border Travel Issues
-- Helps understand international expansion challenges (Question 1)
SELECT 
    Tags.TagName,
    COUNT(*) as IssueCount,
    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
WHERE Tags.TagName IN ('visas', 'customs', 'immigration', 'international-travel')
    AND Posts.PostTypeId = 1
GROUP BY Tags.TagName
ORDER BY IssueCount DESC;

Enter Parameters

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