Reference not supported on group function

后端 未结 2 1260
抹茶落季
抹茶落季 2021-01-18 03:06

I have some problem using this query, it appears that i cannot use alias as reference on group by query

SELECT v.V_VEHICLEID, v.V_LICENSENO,
ROUND((MAX(IF(DA         


        
2条回答
  •  清歌不尽
    2021-01-18 03:32

    you did not specify the alias WP. take a look, it must be like this: ...

    JOIN WAYPOINTS wp on wp.WP_VEHICLEID = v.V_VEHICLEID
    

提交回复
热议问题