Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática
SELECT pq.Id, pq.Title, pq.Body, pq.Tags, pa.Body as AcceptedAnswer , pq.CreationDate FROM posts pq JOIN posts pa ON pq.AcceptedAnswerId = pa.Id WHERE pq.PostTypeId = 1 AND -- Questions pq.CreationDate BETWEEN '01-JAN-2019' AND '01-JAN-2020' AND -- Time pq.AcceptedAnswerId IS NOT NULL AND -- Have accepted answer -- pq.Id NOT IN (SELECT PostId FROM PostLinks WHERE LinkTypeId = 3) AND -- No duplicate question -- pq.Id NOT IN (SELECT RelatedPostId FROM PostLinks WHERE LinkTypeId = 3) AND -- No duplicate question (pq.Tags LIKE '%<javascript>%' )AND pq.Body NOT LIKE '%<img src="%">%' AND pq.ViewCount > 0