19

I'd like to write a query in the Stack Exchange Data Explorer for the Cross Validated site, which returns me the Question and Answers on Cross Validated by month and by tag, for the 10 tags which today have the most unanswered questions. If this isn't possible, it's OK to select the 10 tags which have the most questions, such as the most popular tags.

Thus, it'd be a modification of "Questions and Answers per Month", where the grouping is not only done by month, but by tag too.

The problem is, I don't know SQL. Would this question be on topic on SO or should I ask it on Meta SE? SQL is a programming language, so I think it would be on topic on SO, but I've seen questions about the SE Data Explorer being asked on Meta SE.

8
  • 13
    MSE has a tag for it meta.stackexchange.com/questions/tagged/data-explorer and there are plenty of write this query for me which are received well if they include some sort of an attempt. I would only ask on SO if you have a specific problem in T-SQL that you can't solve on your own. I would have high hopes for a rewrite this query question on SO.
    – rene
    Commented Jul 11, 2018 at 18:38
  • 1
    If you say by month and by tag, for the 10 tags... do you mean that you want those 10 tags represented in one query / graph, with 2 data columns per tag, so 20 in total, and a date?
    – rene
    Commented Jul 11, 2018 at 18:45
  • ok, then I'll ask on MSE. I cannot show much effort - I have only the faintest idea of what SQL is (what's T-SQL? I thought the query was in SQL). "I would have high hopes for a rewrite this query question on SO" - I guess it's a typo. You meant "I wouldn't have high hopes for a rewrite this query question on SO", right?
    – DeltaIV
    Commented Jul 11, 2018 at 18:46
  • @rene yes, exactly. 21 columns (two per tags + a date column).
    – DeltaIV
    Commented Jul 11, 2018 at 18:47
  • 5
    Yes, sorry, that is a typo I would NOT have high hopes for a "rewrite this query" question on SO
    – rene
    Commented Jul 11, 2018 at 18:48
  • 2
    @DeltaIV T-SQL is Microsoft's implementation of SQL. Generally if you actually want to ask an SQL question on SO, you are usually going to want to indicate which DBMS you are using because that will change the features you have access too. And the actual query will vary from DBMS to DBMS because of variations in variation vendors. See en.wikipedia.org/wiki/SQL#Interoperability_and_standardization Commented Jul 11, 2018 at 19:05
  • 1
    @psubsee2003 Since the database system used by StackExchange is SQL Server, which uses T-SQL - Microsoft's dialect of SQL -- you use T-SQL for queries in the Data Explorer.
    – Zev Spitz
    Commented Jul 11, 2018 at 20:51
  • 1
    Stackoverflow will probably downvote you however you might ask them, ask on other one.
    – Suraj Jain
    Commented Jul 12, 2018 at 10:25

2 Answers 2

25

If you need a lot of help, none of the Stack Exchange sites are a great venue. The Q/A model doesn't lend itself for one-on-one tutoring.

That rules out you can ask on Stack Overflow without running the risk of having your question closed as too broad or off-topic/no mcve. Only when you run into a specific problem with the T-SQL statements (Microsoft's implementation of SQL) you could turn to SO proper. I've done that once for a SEDE related problem.

For the Stack Exchange Data Explorer there is a pretty active group of users on Meta Stack Exchange that take questions and query request although they prefer that you have shown an attempt (try the tutorial!), did some research etc. Also important is to formulate clear requirements. I don't like to go back and forth after I delivered a first version.

Your best chance of getting an answer with a working query is by asking on MSE. I would NOT have high hopes for a rewrite this query question when posted on Stack Overflow.

1
  • I asked on MSE, as you suggest.
    – DeltaIV
    Commented Jul 11, 2018 at 20:30
7

Dare I suggest this, but the SO chatroom's can be a great place for extended discussion and for lots of input on larger problems, a few of the chatroom's regularly get together over a single problem and try to figure out answers. Might be worth dropping into one of the rooms to do with SQL and seeing if someone there wants to help out.

2
  • 3
    Chat is definitely a good option, specially if the OP is in the research phase and/or if it's unclear if SEDE has the data needed to fulfill their requirement.
    – rene
    Commented Jul 12, 2018 at 13:05
  • Turns out there is now a SEDE chatroom on MSE chat and a SEDE room on SE chat.
    – rene
    Commented Jul 30, 2018 at 16:20

Not the answer you're looking for? Browse other questions tagged .