อันดับแรกไม่จำเป็นต้องใช้ทุกตาราง
firstIt is not neccessary to use all the tables.
 PostHistory:  Id [ number]  PostHistoryTypeId [ number]  PostId [ number]  RevisionGUID [ other]  CreationDate [ time]  UserId [ number]  UserDisplayName [ text]  Comment [ text]  Text [ text]  ContentLicense [ text] 
SELECT Question.Id, Question.Id AS "post_link", Users.LastAccessDate, Question.AnswerCount FROM Posts AS Question JOIN Users ON Question.OwnerUserId = Users.Id WHERE Question.AcceptedAnswerId IS NULL AND NOT EXISTS(SELECT * FROM Posts AS Answer WHERE Answer.ParentId = Question.Id AND Answer.Score > 0) AND Question.PostTypeId = 1 AND Question.ClosedDate IS NULL AND DATEDIFF(Day, Users.LastAccessDate, GETDATE()) < 30 ORDER BY Question.Id