题解 | #返回购买 prod_id 为 BR01 的产品

返回购买 prod_id 为 BR01 的产品的所有顾客的电子邮件(一)

https://www.nowcoder.com/practice/962b16554fbf4b99a87f4d68020c5bfb

题解 | #返回购买 prod_id 为 BR01 的产品的所有顾客的电子邮件(一)#
select
   cust_email
from
    (SELECT
            cust_id
        FROM
            ((select
                    order_num
            from
                    OrderItems
            where
                    prod_id = "BR01") as oi 
                join Orders using(order_num)) 
        ) AS ooc
JOIN Customers USING(cust_id)
数据量大的话 这样对表做删减 效率会不会更快些  哈哈哈哈哈 笑死了怎么复杂怎么来
全部评论

相关推荐

牛客36400893...:我不是这个专业的,但是简历确实没有吸引我的亮点,而且废话太多没耐心看
0offer是寒冬太冷还...
点赞 评论 收藏
分享
2025-11-21 20:30
门头沟学院 Java
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务