Product
and Sales
tables on product_id
.product_id
.HAVING
clause to ensure that the minimum sale_date
is greater than or equal to 2019-01-01
and the maximum sale_date
is less than or equal to 2019-03-31
.product_id
and product_name
from the filtered results.erDiagram Product { int product_id PK varchar product_name int unit_price } Sales { int seller_id int product_id FK int buyer_id date sale_date int quantity int price } Product ||--o{ Sales : contains