You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
392 B
13 lines
392 B
2 years ago
|
create table ticks(id varchar(20), timestamp int, tradeDate date, price int)
|
||
|
|
||
|
load data infile "data/stocksym_price.csv"
|
||
|
into table ticks fields terminated by ","
|
||
|
|
||
|
-- select max(price - mins(price))
|
||
|
-- from ticks assuming asc timestamp
|
||
|
-- where ID = "S" and tradeDate= '01-10-22';
|
||
|
|
||
|
select max(price - mins(price))
|
||
|
from ticks assuming asc timestamp
|
||
|
where ID = "S" and tradeDate= '2022-10-01';
|