-- group by multiple keys create table res3 AS SELECT sum(quantity) as sum_quantity FROM trade01m GROUP BY stocksymbol, price