SELECT SUM(quantity) items_ordered 
FROM OrderItems
WHERE prod_id = 'BR01'

题解:

1.任务:总数

2.产品id为BR01

思路:

1.查询时使用求和函数,因为不一定只有一条是指定的记录

2.条件限制