题解 | 查询单日多次下订单的用户信息?
查询单日多次下订单的用户信息?
https://www.nowcoder.com/practice/9958aed1e74a49b795dfe2cb9d54ee12
select date(o.order_time) as order_date, o.user_id, count(order_id) as order_nums, u.vip from order_tb as o join uservip_tb as u on o.user_id = u.user_id group by date(o.order_time), o.user_id having count(order_id) >1 order by count(order_id) desc;

