All the distinct days on which I created posts

0

Please login or register to vote for this query.

(click on this box to dismiss)

Artificial Intelligence

Q&A for people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment

WITH 
groups(dates,grp) AS (

  SELECT DISTINCT CAST(CreationDate AS DATE),
  dateadd(day, -Dense_rank() OVER (ORDER BY CAST(CreationDate AS DATE)), CAST(CreationDate AS DATE))
   FROM Posts
   WHERE OwnerUserId = ##UserId##
  )
SELECT 
*
FROM groups

Enter Parameters

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