How to write the same primary item in one row in mysql Query Results

Source: Internet
Author: User
My table structure is like this! Then, my statements are as follows: selecttime, Lon, Lat, wificonnect. mac_ap, wificonnect. Arg, wifinearby. mac_ap, wifinearby. 'level' fromgps, low, wificonnect, success! & Quot; 0 & quot; an mysql

My table structure is as follows:

Then, my statement is like this.
Select time, Lon, Lat, wificonnect. mac_ap, wificonnect. Arg, wifinearby. mac_ap, wifinearby.Level
From gps, low, wificonnect, wifinearby
Where Lon! = "0" and Lat! = '0'
And gps. fk_low_id = low. pk_id
AND low. pk_id = wificonnect. fk_low_id
And low. pk_id = wifinearby. fk_low_id
And wifinearby. mac_ap! = '00: 00: 00: 00: 00: 00 ';

The result is as follows:

I want to use the same lon and lat as the unique primary item and recreate a table with the same Lon, Lat, and one (Lon, Lat) corresponding to multiple APs. how can I write a statement?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.