Skip to content

Commit 44f1f81

Browse files
authored
Create 578_Get_Highest_Answer_Rate_Question.sql
1 parent 7849b10 commit 44f1f81

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)