题解 | #检索并列出已订购产品的清单#

检索并列出已订购产品的清单

https://www.nowcoder.com/practice/674d99a46a96494d8267ae4d162ed459

select order_num, prod_id, quantity
from OrderItems
where quantity >= 100 and prod_id = 'BR01'
union
select order_num, prod_id, quantity
from OrderItems
where quantity >= 100 and prod_id = 'BR02'
union
select order_num, prod_id, quantity
from OrderItems
where quantity >= 100 and prod_id = 'BR03'

select order_num, prod_id, quantity
from OrderItems
where quantity >= 100 and prod_id in ('BR01', 'BR02', 'BR03')
全部评论

相关推荐

xxxxOxo:该催就催,想要你的不会因为催就挂,催了就挂的是因为本来就要挂你
点赞 评论 收藏
分享
Cherrycola01:0实习 0项目 约等于啥也没有啊 哥们儿这简历认真的吗
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务