Question

I want to download the data from Stackexchange Data explorer but the problem is that the csv file contains only first 50K records at a time while there are about 3 Lac records.So, for downloading the whole data I will need to download it in multiple steps(first 1-50000 rows then 50001-100000 and so on).How can I specify such range(like row 50001-100000) in the query on the Stackexchange data explorer interface.I tried using TOP keyword(as Stackexchange data explorer supports TSQL) but with that I can get only first 50K records only.How can I use it to get next set of records?

No correct solution

OTHER TIPS

I have no experience using Stackexchange Data explorer but, depending on which version of SqlSever it's using/emulating, you should be able to craft a query using OFFSET/FETCH (2012) or ROW_NUMER/OVER. See this question for examples of each.

Reference for OFFSET/FETCH and ROW_NUMBER()/OVER

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top