I have a lot of records like this (over 6000) in this table Lat
and Lng
is same and I should select base these fields (lat,lng)
:
I need to computing on these records ( and )
I need to get first record of a Lat Lng
(same) and latest (between same date) for compute on time field with filter date ,and get latest record with first record from lat lng
next one.
How I can write this query ?
I wrote this query, and I need to get first and last record base date now !
SELECT mDate as date ,xLat as lat,yLng as lng
FROM ReportAct_tbl ,
(SELECT mDate as dt,xLat as lt,yLng as lg
FROM ReportAct_tbl )
WHERE date = dt and lat = lt and lng = lg
order by date ASC,lat ASC,ylng ASC