Skip to content

Instantly share code, notes, and snippets.

@arsho
Last active May 8, 2019 16:57
Show Gist options
  • Save arsho/bffeac39534bb9c240a2365b1ad06179 to your computer and use it in GitHub Desktop.
Save arsho/bffeac39534bb9c240a2365b1ad06179 to your computer and use it in GitHub Desktop.
/* Date of execution: Sat 4 May 23:57:05 +06 2019*/
/* Number of questions with Flask tag: 30115 */
SELECT COUNT(Id) FROM Posts WHERE Tags LIKE '%flask%';
/* Number of questions with accepted answer with Flask tag: 15991 */
SELECT COUNT(Id) FROM Posts WHERE Tags LIKE '%flask%' and AcceptedAnswerId IS NULL;
/* Number of questions without accepted answer with Flask tag: 14124 */
SELECT COUNT(Id) FROM Posts WHERE Tags LIKE '%flask%' and AcceptedAnswerId IS NOT NULL;
/* Top 10 most viewed question with accepted answer in Flask tag */
SELECT TOP(10)
Title, Body
FROM Posts
WHERE Tags LIKE '%flask%' and
AcceptedAnswerId IS NOT NULL
ORDER BY ViewCount DESC;
/*
All questions with accepted answers in Flask tag sorted by view count
Query URL: https://data.stackexchange.com/stackoverflow/query/1043309/all-questions-with-accepted-answers-in-flask-tag-sorted-by-view-count
*/
SELECT *
FROM Posts
WHERE Tags LIKE '%flask%' and
AcceptedAnswerId IS NOT NULL
ORDER BY ViewCount DESC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment