O
Octet32
I have a table that has 5 fields [State][Zip][Company][RT][LOC_NO]
There are many RT numbers can I show which route that has the most LOC_NO
for each zip and company number?
SELECT Zip_codes, Company,RT,
Count(LOC_NO)
FROM ZIPS
GROUP BY Zip, Company,RT, State
HAVING (((State)="AK"))
ORDER BY Zip;
Zip company RT LOC_NO
99501 200 301 3
99501 200 305 3
99501 200 310 1484
99501 200 320 5
99501 200 330 5
99501 200 340 7
99501 200 350 2
99501 200 360 12
99501 200 370 1
99501 200 380 4
There are many RT numbers can I show which route that has the most LOC_NO
for each zip and company number?
SELECT Zip_codes, Company,RT,
Count(LOC_NO)
FROM ZIPS
GROUP BY Zip, Company,RT, State
HAVING (((State)="AK"))
ORDER BY Zip;
Zip company RT LOC_NO
99501 200 301 3
99501 200 305 3
99501 200 310 1484
99501 200 320 5
99501 200 330 5
99501 200 340 7
99501 200 350 2
99501 200 360 12
99501 200 370 1
99501 200 380 4