SQL Interview | 'Queries Quality and Percentage I' | SQL 50 | Leetcode Easy Problem 1211 | CASE

preview_player
Показать описание
Leetcode Easy Problem

Write a solution to find each query_name, the quality, and poor_query_percentage.

Both quality and poor_query_percentage should be rounded to 2 decimal places.

Return the result table in any order.

I have used CASE statement and aggregate function to solve the problem
The runtime of my solution beats 69.98% of the users and memory beats 100% of the users.

This series will help you in SQL Interviews. All of these questions are present on Leetcode. Please go through the videos. Let me know your feedback and anything specific that you would like to see in the comments section. Please like and share

Рекомендации по теме
join shbcf.ru