Data Explorer (SEDE)

For discussions related to SEDE queries and anything related to SEDE. Links to FAQ, tutorial, database schema etc.: https://meta.stackexchange.com/tags/data-explorer/info
19h ago – rene
68

export all events for this room

Starred posts

1 2 3 4
Sep 1, 2018 20:42
It is a bit of juggling by generating a dynamic query (using the PIVOT statement fom TSQL) in a variable and then run that sql with the EXEC statement
Sep 1, 2018 20:40
That allows you to give in a single field a comma separated list of tags you want to see those percentage for
Aug 28, 2018 16:17
the first column either needs to be a date or a number and its values go on x-axis, all other columns go as Y-values
Aug 25, 2018 11:14
24
Q: Please provide a Moderators table in the Data Explorer

Awesome PoodlesModerators are special, privileged users who should serve as an example to the rest of us. Therefore, it is natural to want to query behaviors and statistics about these model users, Like I did, for example, when researching this question. Unfortunately, there is no way to determine moderators ...

Aug 20, 2018 07:32
That x hours ago is also shown in the help on the first FAQ item, last sentence.
Aug 20, 2018 07:27
and you can see the last update date here: i.sstatic.net/TnT1p.png
Aug 18, 2018 12:35
You might like the format function: docs.microsoft.com/en-us/sql/t-sql/functions/… it allows you to format the values from several types into a varchar using the .Net composite string formatting options. Select format(getdate(), 'yyyy-MM' ) gives you 2018-08 in one go.
Aug 18, 2018 12:31
@Martin to group by day can be achieved by casting (or converting) a datetime to a date type, so group by cast(creationdate as date). The date type doesn't allow for a time component so it will simply drop that from the datetime values. For month there isn't such trick, but you don't need to convert to str and concat. A group by yesr(creationdate), month(creationdate) will work.
Aug 16, 2018 11:53
So looking there, I should have added ClosedDate and Tags to that list.
Aug 16, 2018 11:33
@Martin yes, but the tags field is later added to be populated as well which is reflected in the Database schema answer (the superscript 1 are used to indicate that)
Aug 16, 2018 08:07
The PostsWithDeleted table is useful for that. However, for deleted questions only some information is kept - according to this answer it is Id, PostTypeId, ParentId, CreationDate, DeletionDate, Score.
Jul 29, 2018 06:21
This post is very likely to be useful for anybody working with SEDE: Database schema documentation for the public data dump and SEDE.
Jul 27, 2018 20:44
in Tavern on the Meta, 1 min ago, by Shadow Wizard
@rene oh. Well, major downside having it here is it requires 20 net MSE rep for people to take part.
Jul 27, 2018 11:59
Not if you apply the technique with JSON_VALUE I applied here: data.stackexchange.com/stackoverflow/query/873421
1 2 3 4