题解 | #将两个 SELECT 语句结合起来(一)#
将两个 SELECT 语句结合起来(一)
http://www.nowcoder.com/practice/a33d5c0ebf434e00b22e2977a5aa3a90
select o1.prod_id, o1.quantity
from OrderItems o1
where o1.quantity=100
union
select o2.prod_id,o2.quantity
from OrderItems o2
where o2.prod_id like 'BNBG%'
order by prod_id;