题解 | #将两个 SELECT 语句结合起来(一)#

将两个 SELECT 语句结合起来(一)

https://www.nowcoder.com/practice/a33d5c0ebf434e00b22e2977a5aa3a90

select 
    t1.prod_id,
    t1.quantity
from 
    OrderItems  t1
where 
    t1.quantity = 100
union
select
    t2.prod_id,
    t2.quantity
from 
    OrderItems t2
where 
    t2.prod_id like 'BNBG%'

全部评论

相关推荐

明天不下雨了:兄弟你是我今天看到的最好看的简历(我说的是简历风格跟简历书写)把985 211再搞亮一点。投boss就说;您好,我华科(985)研二在读,本科211。对您的岗位很感兴趣,希望能获得一次投递机会。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务