DEV Community

Debesh P.
Debesh P.

Posted on

1068. Product Sales Analysis I | LeetCode | SQL 50 | Interview Questions | MySQL

Problem Link

https://leetcode.com/problems/product-sales-analysis-i/


leetcode 1068


Solution

# Write your MySQL query statement below
select
    p.product_name,
    s.year,
    s.price
from 
    Product p join Sales s
    on p.product_id = s.product_id;
Enter fullscreen mode Exit fullscreen mode

Top comments (0)