File tree Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Expand file tree Collapse file tree 2 files changed +45
-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-182 -green.svg )] ( #index )
3+ [ ![ Solved] ( https://img.shields.io/badge/solved-183 -green.svg )] ( #index )
44<!-- markdownlint-enable MD041 -->
55
66# SQL Everyday
@@ -216,6 +216,7 @@ Because this project necessitated a framework to enable consistent daily practic
216216| 180 | [ Books with NULL Ratings] ( https://leetcode.com/problems/books-with-null-ratings/description/ ) | [ Solution] ( solutions/180_books_with_null_ratings.md ) | LeetCode | Easy | |
217217| 181 | [ Customer Order Frequency] ( https://leetcode.com/problems/customer-order-frequency/description/ ) | [ Solution] ( solutions/181_customer_order_frequency.md ) | LeetCode | Easy | ` USING ` , ` HAVING ` |
218218| 182 | [ Low-Quality Problems] ( https://leetcode.com/problems/low-quality-problems/description/ ) | [ Solution] ( solutions/182_low_quality_problems.md ) | LeetCode | Easy | |
219+ | 183 | [ Product Sales Analysis II] ( https://leetcode.com/problems/product-sales-analysis-ii/description/ ) | [ Solution] ( solutions/183_product_sales_analysis_ii.md ) | LeetCode | Easy | |
219220<!-- Index End - WARNING: Do not delete or modify this markdown comment. -->
220221<!-- - cSpell:enable --->
221222
Original file line number Diff line number Diff line change 1+ # SQL Everyday \# 183
2+
3+ ## Product Sales Analysis II
4+
5+ Site: LeetCode\
6+ Difficulty per Site: Easy
7+
8+ ## Problem
9+
10+ Write a solution that reports the total quantity sold for every product id.
11+
12+ Return the resulting table in ** any order** . [[ Full Description] ( https://leetcode.com/problems/product-sales-analysis-ii/description/ )]
13+
14+ ## Submitted Solution
15+
16+ ``` sql
17+ -- Submitted Solution
18+ SELECT
19+ product_id
20+ ,SUM (quantity) AS total_quantity
21+ FROM Sales
22+ GROUP BY product_id
23+ ORDER BY product_id ASC
24+ ;
25+ ```
26+
27+ ## Site Solution
28+
29+ ``` sql
30+ -- LeetCode Solution
31+ -- Site solution essentially the same
32+ ```
33+
34+ ## Notes
35+
36+ TBD
37+
38+ ## NB
39+
40+ TBD
41+
42+ Go to [ Index] ( ../?tab=readme-ov-file#index ) \
43+ Go to [ Overview] ( ../?tab=readme-ov-file )
You can’t perform that action at this time.
0 commit comments