1153. Product Sales Analysis I
My accepted SQL solution to LeetCode problem 1153, Product Sales Analysis I, running in 1283ms.
- Difficulty: Easy
- SQL
- Runtime 1283ms
- Memory 0.0B
- Updated
Read the problem on LeetCode View on GitHub
The problem statement is LeetCode’s and stays on their site. What follows is my accepted solution.
SQL
Accepted on LeetCode — runtime 1283ms, memory 0.0B, accepted 2025-12-29.
SELECT p.product_name, s.year, s.price
FROM Sales s
JOIN Product p ON s.product_id = p.product_id