我只想按结果的纬度和经度列分组,而不要将caddress_line1分组

时间:2018-06-26 13:36:29

标签: php mysql

SELECT 
    van_details.latitude,
    van_details.longitude,
    customers.caddress_line1
FROM 
    van_details,
    mapping_order,
    order_details,
    customers 
WHERE 
    mapping_order.order_id = order_details.order_id
    AND mapping_order.van_no = van_details.van_no 
    AND order_details.customer_name = customers.cust_id 
    AND mapping_order.delivery_status = '0' 
    AND mapping_order.van_no = '90 X 50 Q'

这是我的查询

enter image description here

0 个答案:

没有答案