Skip to content

Commit 8bb1e89

Browse files
committed
🟢 Solve problem 1211
1 parent 17b949f commit 8bb1e89

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎sql/1211.sql

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SELECT
2+
query_name,
3+
ROUND(AVG(rating / position), 2) AS quality,
4+
ROUND(SUM(CASE WHEN rating < 3 THEN 1 ELSE 0 END) * 100.0 / COUNT(*), 2) AS poor_query_percentage
5+
FROM
6+
Queries
7+
WHERE
8+
query_name IS NOT NULL
9+
GROUP BY
10+
query_name;

0 commit comments

Comments
 (0)