File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 11<!-- markdownlint-disable MD041 -->
22[ ![ eevveerryyddaayy release] ( https://img.shields.io/badge/eevveerryyddaayy-v1.3.0-blue.svg )] ( https://github.com/ggeerraarrdd/eevveerryyddaayy/ )
3- [ ![ Solved] ( https://img.shields.io/badge/solved-190 -green.svg )] ( #index )
3+ [ ![ Solved] ( https://img.shields.io/badge/solved-191 -green.svg )] ( #index )
44<!-- markdownlint-enable MD041 -->
55
66# SQL Everyday
@@ -224,6 +224,7 @@ Because this project necessitated a framework to enable consistent daily practic
224224| 188 | [ The Winner University] ( https://leetcode.com/problems/the-winner-university/description/ ) | [ Solution] ( solutions/188_the_winner_university.md ) | LeetCode | Easy | |
225225| 189 | [ Unique Orders and Customers Per Month] ( https://leetcode.com/problems/unique-orders-and-customers-per-month/description/ ) | [ Solution] ( solutions/189_unique_orders_and_customers_per_month.md ) | LeetCode | Easy | |
226226| 190 | [ Warehouse Manager] ( https://leetcode.com/problems/warehouse-manager/description/ ) | [ Solution] ( solutions/190_warehouse_manager.md ) | LeetCode | Easy | |
227+ | 191 | [ The Number of Rich Customers] ( https://leetcode.com/problems/the-number-of-rich-customers/description/ ) | [ Solution] ( solutions/191_the_number_of_rich_customers.md ) | LeetCode | Easy | |
227228<!-- Index End - WARNING: Do not delete or modify this markdown comment. -->
228229<!-- - cSpell:enable --->
229230
Original file line number Diff line number Diff line change 1+ # SQL Everyday \# 191
2+
3+ ## The Number of Rich Customers
4+
5+ Site: LeetCode\
6+ Difficulty per Site: Easy
7+
8+ ## Problem
9+
10+ Write a solution to report the number of customers who had ** at least one** bill with an amount ** strictly greater** than ` 500 ` .
11+
12+ Return the resulting table in ** any order** . [[ Full Description] ( https://leetcode.com/problems/the-number-of-rich-customers/description/ )]
13+
14+ ## Submitted Solution
15+
16+ ``` sql
17+ -- Submitted Solution
18+ SELECT
19+ COUNT (DISTINCT customer_id) AS rich_count
20+ FROM Store
21+ WHERE amount > 500
22+ ;
23+ ```
24+
25+ ## Site Solution
26+
27+ ``` sql
28+ -- LeetCode Solution
29+ -- Site solution essentially the same.
30+ ```
31+
32+ ## Notes
33+
34+ TBD
35+
36+ ## NB
37+
38+ TBD
39+
40+ Go to [ Index] ( ../?tab=readme-ov-file#index ) \
41+ Go to [ Overview] ( ../?tab=readme-ov-file )
You can’t perform that action at this time.
0 commit comments