select distinct user_id
from (
select *,
count(status) over(partition by user_id) cnt
from order_info
where date>'2025-10-15' and status='completed'
and product_name in ('C++','Java','Python')
) t
where cnt>=2
order by user_id

京公网安备 11010502036488号