there is a table
zapros | result | time | code 1 | ok | 14.12 | 200 1 | err | 14.12 | 403 1 | err | 14.12 | 404 2 | ok | 14.12 | 200 3 | ok | 14.12 | 200 3 | ok | 14.12 | 200 4 | err | 14.12 | 404 Help make a request. It is necessary to group by field zapros, count for each grouped zapros the number of errors (result = err) and their total number. For each grouped zapros, you need to further group by code and also calculate how many and which codes are present in the table. Calculate the percentage of successful requests by the formula 1-err / all for each grouped request, and select all all the grouped requests with a coeff> 0.5 at the output should work
zapros | err | all | 200 | 403 | 404 | rate 1 | 2 | 3 | 1 | 1 | 1 | 0.34 2 | 0 | 1 | 1 | 0 | 0 | 1 ....