Can we export timeline statistics of a post into a csv file?


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select creationdate
     , [type]
     , [typeid] as [History, vote or post typeid]
     , name
-- all posthistory events
select creationdate
     , 'hist' [type]
     , posthistorytypeid as typeid
     , name
from posthistory
inner join posthistorytypes pht on = posthistorytypeid
where postid = ##postid?5963269##
-- all votes
select creationdate
     , 'votes' 
     , votetypeid
     , name
from votes
inner join votetypes vt on = votetypeid
where postid = ##postid?5963269##
-- all answers (for questions)
select creationdate
     , 'answer'
     , posttypeid
     , 'answer added'
from posts
where parentid = ##postid?5963269##
) data
order by creationdate desc

Enter Parameters

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