Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 464 Bytes

File metadata and controls

25 lines (17 loc) · 464 Bytes

中文文档

Description

None

Solutions

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