AQuery/benchmark/quries/Timescaledb/q9

3 lines
79 B

SELECT stocksymbol, MAX(price) - MIN(price)
FROM trade01m
GROUP BY stocksymbol;