У меня есть 1 месяц данных.Каждая дата имеет некоторые другие данные и время.Я отсортировал данные по дате и времени по возрастанию.Так как мне выбрать текущие данные каждую дату?
SELECT /smr/sectref "Unique Sector Reference
tplnr "Functional location
/smr/coffdat "Chox off date
/smr/coffdat_gmt "Chox off date in GMT
/smr/cofftim "Chox off time
/smr/cofftim_gmt "Chox off time in GMT
/smr/condat "Chox on date
/smr/condat_gmt "Chox on date in GMT
/smr/contim "Chox on time
/smr/contim_gmt "Chox on time in GMT
/smr/woffdat "Wheels off date
/smr/woffdat_gmt "Wheels off date in GMT
/smr/wofftim "Wheels off time
/smr/wofftim_gmt "Wheels off time in GMT
/smr/wondat "Wheels on date
/smr/wondat_gmt "Wheels on date in GMT
/smr/wontim "Wheels on time
/smr/wontim_gmt "Wheels on time in GMT
/smr/depstat "Departure station
/smr/arrstat "Arrival station
/smr/carcode
/smr/flghtno
/smr/flghttp "Flight type
/smr/flyhrs "Actual flying hours
/smr/tchgoes "Touch and goes
/smr/supercy "Supersonic cycles
FROM /tcsmro/sector
INTO TABLE i_sect_proc
WHERE tplnr = p_tplnr
AND /smr/wondat IN s_arrdat
ORDER BY /smr/wondat /smr/wontim ASCENDING.
LOOP AT i_sect_proc.
MOVE-CORRESPONDING i_sect_proc TO i_final_f.
APPEND i_final_f.
ENDLOOP.