0578. Get Highest Answer Rate Question
https://leetcode.com/problems/get-highest-answer-rate-question
Description
Get the highest answer rate question from a table survey_log
with these columns: id, action, question_id, answer_id, q_num, timestamp.
id means user id; action has these kind of values: "show", "answer", "skip"; answer_id is not null when action column is "answer", while is null for "show" and "skip"; q_num is the numeral order of the question in current session.
Write a sql query to identify the question which has the highest answer rate.
Example:
Note: The highest answer rate meaning is: answer number's ratio in show number in the same question.
ac
Last updated