test

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

/*SELECT  TOP 100 * /*p.Title, p.Id, p.Score, p.ViewCount, u.DisplayName 
FROM Posts p
JOIN Users u ON p.OwnerUserId = u.Id
WHERE p.PostTypeId = 1
AND p.Score >= 25*/

/*FROM Posts p
JOIN Users u ON p.OwnerUserId = u.Id
JOIN Posts a on p.Id = a.ParentId*/

/*JOIN SuggestedEdits s ON p.Id = s.PostId*/
/*JOIN Comments c ON c.PostId = p.Id*/
/*FULL OUTER JOIN Posts p2 ON p2.ParentId = p.AcceptedAnswerId*/
/*WHERE p.PostTypeId = 1 AND p.Tags IS NOT NULL*/

/*WHERE  p.Tags IS NOT NULL
ORDER BY p.Id,p.Score DESC*/

/*
union all

SELECT TOP 10  *
FROM Posts p
JOIN Users u ON p.OwnerUserId = u.Id
JOIN SuggestedEdits s ON p.Id = s.PostId*/
/*FULL OUTER JOIN Posts p2 ON p2.ParentId = p.AcceptedAnswerId*/
/*WHERE p.PostTypeId = 2 AND p.Tags IS NOT NULL*/

/*

SELECT TOP 10 *
FROM Posts*/


SELECT top 200 p.Title, p.Id, p.Score, a.Score AS "Accepted Score", 
u.DisplayName AS "Asker", au.DisplayName AS "Answerer",p.AnswerCount,a.Body
  
FROM Posts p
JOIN Posts a ON p.AcceptedAnswerId = a.Id
JOIN Users u ON p.OwnerUserId = u.Id
JOIN Users au ON a.OwnerUserId = au.Id
WHERE p.PostTypeId = 1
AND p.Score >= 25
and p.AcceptedAnswerId IS NOT NULL
ORDER BY p.Score DESC

Enter Parameters

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