【sql】 按日期分组统计

select
dt,
count(distinct item_id) as spu_qtty
from
app.table1
where
dt >= '2019-03-07'
group by
dt

posted on 2019-08-05 15:32  奋斗的芒果ai榴莲  阅读(1455)  评论(0编辑  收藏  举报