简介

select id, user_id, product_name, status, client_id, date from
(
    select id, user_id, product_name, status, client_id, date, count(1) over (partition by user_id) as num
    from order_info
    where product_name in ('C++', 'Python', 'Java')
    and status = 'completed' and date > '2025-10-15'
) as b
where b.num >= 2
order by id;

posted on 2021-07-01 15:07  HDU李少帅  阅读(56)  评论(0编辑  收藏  举报