query t1

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
  a.body, b.CloseReasonTypeId
FROM
  posts a
LEFT JOIN pendingflags b ON (a.id = b.postid or b.postid IS NULL)
WHERE 
  YEAR(a.CreationDate) = '2019' AND
  MONTH(a.CreationDate) = 2 AND
  DAY(a.CreationDate) = 1
  

/*UNION ALL

SELECT
  TOP 500 a.body, 0 as 'CloseReasonTypeId', 'Not Flagged' as 'Name'
FROM
  posts a
LEFT JOIN pendingflags b ON (a.id = b.postid)
WHERE YEAR(a.CreationDate) = '2019' AND b.postid IS NULL*/

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results