Lancelot / test / ssb / queries / original / q21.sql
q21.sql
Raw
select sum(lo_revenue), d_year, p_brand1
from lineorder, ddate, part, supplier
where lo_orderdate = d_datekey
and lo_partkey = p_partkey
and lo_suppkey = s_suppkey
and p_category = 'MFGR#12'
and s_region = 'AMERICA'
group by d_year, p_brand1
order by d_year, p_brand1