I tried the following SQL statement in MySQL:
select tbl_product.*, count(*) total
from tbl_product
where date(tbl_product.date) > date("2022-11-21") && date(tbl_product.date) > date("2022-11-29")
group by tbl_product.product_id
I want to output as the following image