Skip to content

Commit 024363e

Browse files
Update 1211. Queries Quality and Percentage.sql
Co-Authored-By: Antim-IWP <203163676+Antim-IWP@users.noreply.github.com>
1 parent 68f7131 commit 024363e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

1211. Queries Quality and Percentage.sql

+7-1
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,10 @@ SELECT query_name,
6868
ROUND(AVG(rating * 1.0 / position), 2) AS quality,
6969
ROUND(SUM(CASE WHEN rating < 3 THEN 1 ELSE 0 END) * 100.0 / COUNT(*), 2) AS poor_query_percentage
7070
FROM Queries
71-
GROUP BY query_name;
71+
GROUP BY query_name;
72+
73+
-- SELECT query_name,
74+
-- ROUND(AVG(rating * 1.0 / position), 2) AS quality,
75+
-- ROUND(SUM(IF(rating < 3, 1, 0)) * 100.0 / COUNT(*), 2) AS poor_query_percentage
76+
-- FROM Queries
77+
-- GROUP BY query_name;

0 commit comments

Comments
 (0)