Thanks a lot Denny... u pointed me in the right direction...
select unitno,latitude,longitude, Max(date||digits(time)) as dt from myGPSTable group by unitno
u know the above code wont work in DB2 because with group by clause i cant put the fields latitude and longitude as they are neither in...
I have a data dump table (myGPStable) of GPS data records, with fields (unitNo, latitude, longitude, date, time) every one hour the data gets dumped into the table from all the units...
I want to get the latest latitude and longitude of
all the units in a select statement
(Note: the unitno...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.