You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
query_name,
ROUND(AVG(rating *1.0/ position), 2) AS quality,
ROUND(SUM(CASE WHEN rating <3 THEN 1 ELSE 0 END) *100.0/COUNT(*), 2) AS poor_query_percentage
FROM
Queries
WHERE
query_name IS NOT NULLGROUP BY
query_name;