Ok, so here is my code. I am not sure what I would put after the WHERE=
I have numerous MAC addresses with different RSSI values. I would like
to display only the rows with unique MAC adresses and the lowest RSSI
value.
SELECT DISTINCT Scan1.MAC, Scan1.RSSI, Scan1.Building, Scan1.[Name or
Letter], Scan1.Floor, Scan1.Channel, Scan1.SSID, Scan1.WEP
FROM [Scan - sort test] AS Scan1
GROUP BY Scan1.MAC, Scan1.RSSI, Scan1.Building, Scan1.[Name or Letter],
Scan1.Floor, Scan1.Channel, Scan1.SSID, Scan1.WEP
ORDER BY Scan1.MAC, Scan1.RSSI DESC;
Thanks for your help
Mark
pietlinden@hotmail.com wrote:
Quote:
ninrulz wrote:
Quote:
I have been working on a database to perform some of the tasks that I
have been doing manually in Excel. One of those tasks is to sort and
exclude duplicate data. The fields are as follows
Building
Name or letter
Floor
MAC
Channel
SSID
RSSI
WEP
I would like to perorm the same actions I did in excel but use an
Access query. The actions I performed in Excel are below.
Select ALL and click data->sort->header row, MAC-ascending,
RSSI-descending
Select the "MAC" column and click Data->filter->Advanced
Filter->unique recorders
The sorting part seems pretty easy, but I can't figure out how to
remove all but the first record of each MAC.
The purpose of the query is to display the floor with the highest RSSI
number. This would tell me where to find each Wireless AP.
Any help is appreciated
Thanks,
Mark
>
Use a SELECT query. Add the DISTINCT clause and you're good to go.
>
SELECT DISTINCT Field1, Field2,...
FROM MyTable
WHERE Field1='Whatever'
ORDER BY Field1, Field2...