Skip to content

Commit 0331a7a

Browse files
authored
Create 1068-product-sales-analysis-i.sql
1 parent 29fc409 commit 0331a7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

1068-product-sales-analysis-i.sql

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Write your MySQL query statement below
2+
SELECT p.product_name, s.year, s.price
3+
FROM
4+
(SELECT DISTINCT product_id, year, price
5+
FROM Sales) AS s
6+
INNER JOIN Product AS p
7+
WHERE s.product_id = p.product_id

0 commit comments

Comments
 (0)