4楼正解
也可以写成一个语句的:
select a.date,a.time,a.price
from sheet1 a,(SELECT date,max(price) as MaxP
from sheet1
group by date) b
where a.date=b.date and a.price=b.MaxP;
4楼正解
也可以写成一个语句的:
select a.date,a.time,a.price
from sheet1 a,(SELECT date,max(price) as MaxP
from sheet1
group by date) b
where a.date=b.date and a.price=b.MaxP;
select a.date,a.time,a.price1,a.price2,a.price1-a.price2 as price
from sheet1 a,(SELECT date,max(price1-price2) as MaxP
from sheet1
group by date) b
where a.date=b.date and a.price1-a.price2=b.MaxP;