Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 545 Bytes

File metadata and controls

29 lines (19 loc) · 545 Bytes

English Version

题目描述

None

解法

SQL

SELECT s.product_id,
        p.product_name
FROM Sales s, Product p
WHERE s.product_id = p.product_id
GROUP BY  s.product_id
HAVING sum(sale_date < '2019-01-01') = 0
        AND sum(sale_date > '2019-03-31') = 0