9 lines
255 B
SQL
9 lines
255 B
SQL
select SUM(LINE_NUM) as `Number of Products purchased`, BRAND_TYPE as `Brand`
|
|
from LGCUSTOMER
|
|
natural join LGINVOICE
|
|
natural join LGLINE
|
|
natural join LGPRODUCT
|
|
natural join LGBRAND
|
|
where
|
|
CUST_STATE = "ME"
|
|
group by BRAND_TYPE; |