SELECT usr.DisplayName ,pst.Id ,pst.CreationDate ,LAG(pst...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Italian Language Meta

Q&A about the site for students, teachers, and linguists wanting to discuss the finer points of the Italian language

SELECT
	 usr.DisplayName
	,pst.Id
    ,pst.CreationDate
    ,LAG(pst.CreationDate) OVER (ORDER BY pst.Id) as PrevCreationDate
    ,LEAD(pst.CreationDate) OVER (ORDER BY pst.Id) as NextCreationDate
--    ,COUNT(1) as NumberOfPosts
FROM Posts pst
	Inner Join Users usr ON usr.Id = pst.OwnerUserId
WHERE OwnerUserID in (9625673, 7364570)
--GROUP BY usr.DisplayName
ORDER BY usr.DisplayName
;

Enter Parameters

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