CREATE TABLE res9 AS SELECT stocksymbol, MAX(price) - MIN(price) FROM trade10m GROUP BY stocksymbol