Q&A about the site for contractors and serious DIYers
SELECT *, LAG(CreationDate) OVER (ORDER BY CreationDate) FROM Posts p WHERE PostTypeId = 6 ORDER BY CreationDate;