SELECT TOP 1 'https://travel.stackexchange.com/questions/...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Open Data

Q&A for developers and researchers interested in open data

SELECT TOP 1
    'https://travel.stackexchange.com/questions/' + CAST(Posts.Id AS VARCHAR) AS url,
    Posts.Title, Posts.ViewCount, Posts.Score
FROM Posts
LEFT JOIN PostTags ON Posts.Id = PostTags.PostId
LEFT JOIN Tags ON PostTags.TagId = Tags.Id
WHERE Tags.TagName = 'travel' -- Replace 'travel' with the relevant tag
ORDER BY Posts.ViewCount DESC, Posts.Score DESC;

Enter Parameters

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