select
nvjour as jour, nvdate as date, time_format(nvtime,'%H:%i') as heure
, nvlieu as lieu, nvplanche as planche, nvvoile as voile, nvaileron as aileron
, round(nvdistance/1000,2) as dist
, time_format(nvduration,'%H:%i') as duree
, concat(secteur(nvwindirection),'/',right(concat('000',nvwindirection),3)) as sect
, round(nvdistance/time_to_sec(nvduration)/1852*3600,3) as avg
, nvvmax as vmax
, nvd100 as d100
, nvd250 as d250
, nvd500 as d500
, nvd1852 as d1852
-- , nvt1 as t1
, nvt2 as t2
, nvt10 as t10
-- , nvt20 as t20
, nvt3600 as t3600
, nvvtang as Wang
, nvvtmoy as Wmoy
, nvvtmax as Wmax
from navs
where nvlieu = 'kergarvan'
order by nvdate desc,nvtime desc
1305 : FUNCTION daemon64.secteur does not exist