题解 | #牛客的课程订单分析(三)#
牛客的课程订单分析(三)
http://www.nowcoder.com/practice/4ae8cff2505f4d7cb68fb0ec7cf80c57
干就完了 select * from order_info where user_id in (SELECT user_id FROM order_info WHERE DATE_FORMAT(date,'%Y-%m-%d') >'2025-10-15' and product_name in('C++','Java','Python') and status = 'completed' group by user_id HAVING COUNT(product_name) >= 2 ) and status = 'completed' and DATE_FORMAT(date,'%Y-%m-%d') >'2025-10-15' and product_name in('C++','Java','Python') order by id