LeetCode solutions

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

Read the problem on LeetCode View on GitHub

SQL

Accepted on LeetCode — runtime 1283ms, memory 0.0B, accepted 2025-12-29.

sql
SELECT p.product_name, s.year, s.price
FROM Sales s
JOIN Product p ON s.product_id = p.product_id

Source