Get posts of users in a state

1

Please login or register to vote for this query.

(click on this box to dismiss)

Web Applications Meta

Q&A about the site for power users of web applications

SELECT p.Id AS PostId, p.CreationDate AS PostDate, p.Score, p.OwnerUserId, p.CommentCount, u.Location
FROM Posts p
INNER JOIN Users u ON u.Id = p.OwnerUserId
WHERE 
    (Location LIKE ##abbr:string## 
    or UPPER(Location) LIKE ##full:string##) 
    AND Reputation >= 10000
    AND convert(date, p.CreationDate) >= convert(date, '20200220')
    AND convert(date, p.CreationDate) <= convert(date, '20200429')
    AND p.PostTypeId = 2

Enter Parameters

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