TEST JS

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

-- Get top 5000 Python questions with their key metrics
SELECT TOP 5000
    q.Id AS [Post Link],
    q.Title,
    q.Score,
    q.ViewCount,
    q.AnswerCount,
    q.CreationDate,
    q.LastActivityDate,
    q.FavoriteCount,
    q.AcceptedAnswerId,
    q.Body
FROM 
    Posts q
INNER JOIN 
    PostTags pt ON q.Id = pt.PostId
INNER JOIN 
    Tags t ON pt.TagId = t.Id
WHERE 
    q.PostTypeId = 1  -- 1 for questions
    AND t.TagName = 'java'
    AND q.ClosedDate IS NULL  -- Only open questions
    AND q.Score > 0  -- Questions with positive score
ORDER BY 
    q.Score DESC,  -- Get highest scored questions
    q.ViewCount DESC  -- For equal scores, prefer more viewed questions

Enter Parameters

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