We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7849b10 commit 44f1f81Copy full SHA for 44f1f81
Questions_by_ID/578_Get_Highest_Answer_Rate_Question.sql
@@ -0,0 +1,8 @@
1
+-- Note: answer rate = answer actions / total non-answer actions
2
+-- If LeetCode change answer for the test case, plz let me know
3
+
4
+-- Solution: Basics
5
+SELECT TOP 1 question_id AS survey_log
6
+FROM survey_log
7
+GROUP BY question_id
8
+ORDER BY COUNT(answer_id)*1.0/(COUNT(*)-COUNT(answer_id)) DESC;
0 commit comments