MAX会影响查询的其他列吗?

时间:2016-11-09 09:50:53

标签: mysql

SELECT  WorkerId, MAX(  `TimeStamp` ) AS TimeStamp,  `Latitude` ,  `Longitude`
FROM  `workers_actions` 
JOIN worker_user w ON WorkerId = w.Id
WHERE  `ScannedTimestamp` >= DATE( NOW( ) ) 
        AND FarmerId=:farmer_id
        AND Longitude is not null 
        AND Longitude != 0 
        AND Latitude is not null 
        AND Latitude != 0 
GROUP BY WorkerId

我是否会获得具有最大时间戳的行的LatitudeLongitude,或者它是否不是garaunteed?

0 个答案:

没有答案