Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in 'Queries Quality and Percentage, Question No: 1211 on Leetcode, Question No : 19 of "SQL Top 50" #3

Open
parthivshah33 opened this issue Feb 26, 2024 · 0 comments

Comments

@parthivshah33
Copy link

Edited Code from My Side/Final Code :

SELECT query_name, ROUND(AVG(rating / position), 2) AS quality, ROUND((AVG(CASE WHEN rating < 3 THEN 1 ELSE 0 END) * 100), 2) AS poor_query_percentage FROM Queries WHERE query_name IS NOT NULL GROUP BY query_name

--> Added "WHERE" clause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant