bug fixes and clarification

This commit is contained in:
2022-10-05 03:51:57 +08:00
parent 80d2cdb36e
commit dda68bd9e1
9 changed files with 70 additions and 17 deletions
+2
View File
@@ -32,3 +32,5 @@ FIELDS TERMINATED BY ","
select sd(a) + sales from tt, sale1 where tt.a = sale1.Mont
select * from tt, sale1 where tt.a = sale1.Mont
+12
View File
@@ -0,0 +1,12 @@
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';