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

0

Please login or register to vote for this query.

(click on this box to dismiss)

https://meta.stackoverflow.com/questions/372771/can-we-export-timeline-statistics-of-a-post-into-a-csv-file/372772#372772

Stack Overflow

Q&A for professional and enthusiast programmers

select *
from
(
select creationdate
     , 'hist' [type]
     , posthistorytypeid
     , name
from posthistory
inner join posthistorytypes pht on pht.id = posthistorytypeid
where postid = ##postid?5963269##
union 
select creationdate
     , 'votes' 
     , votetypeid
     , name
from votes
inner join votetypes vt on vt.id = votetypeid
where postid = ##postid?5963269##
union 
select creationdate
     , 'answer'
     , posttypeid
     , 'answer added'
from posts
where parentid = ##postid?5963269##
) data
order by 1 desc

Enter Parameters

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