Skip to content

Commit

Permalink
Time: 750 ms (50.2%), Space: 0B (100%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
hovanhoa committed Nov 24, 2023
1 parent 4dd44b4 commit fca92d7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
select
query_name,
round(avg(cast(rating as decimal) / position), 2) as quality,
round(sum(case when rating < 3 then 1 else 0 end) * 100 / count(*), 2) as poor_query_percentage
from
queries
group by
query_name;

0 comments on commit fca92d7

Please sign in to comment.