明らかにavg(min())でエラーが発生するので、このコードを試しましたが、間違った数値が表示されます。何か案は?
ありがとう
select
out_year as "Year",
avg(dwell_time) as "Average",
avg(av.dw_min) as "Minimum",
avg(av.dw_max) as "Maximum"
from
(select min(dwell_time) as dw_min, max(dwell_time) as dw_max
from eq_dwell) av,
eq_dwell ed
where
inv_status = "Offdock"
group by out_year