Table: Adresseliste:
adres prefix
1 one..
2 two..
3 three..
4 ...
Table: Tabel1:
adres status
1 45
1 34
1 3
1 16
2 4
2 78
..
I use this query:
SELECT Adresseliste.adres, Adresseliste.prefix, Tabel1.status
FROM Adresseliste INNER JOIN Tabel1 ON Adresseliste.adres=Tabel1.adres
WHERE [status] = (SELECT Max([status]) FROM Tabel1 WHERE [status] Is Not Null);
I get:
adres prefix status
1 one.. 45
I Want:
adres prefix status
1 one.. 45
2 two.. 78
..
I want each item in the table "adresseliste" presented once with only the highest "status" from the table "Tabel1"
Help!
adres prefix
1 one..
2 two..
3 three..
4 ...
Table: Tabel1:
adres status
1 45
1 34
1 3
1 16
2 4
2 78
..
I use this query:
SELECT Adresseliste.adres, Adresseliste.prefix, Tabel1.status
FROM Adresseliste INNER JOIN Tabel1 ON Adresseliste.adres=Tabel1.adres
WHERE [status] = (SELECT Max([status]) FROM Tabel1 WHERE [status] Is Not Null);
I get:
adres prefix status
1 one.. 45
I Want:
adres prefix status
1 one.. 45
2 two.. 78
..
I want each item in the table "adresseliste" presented once with only the highest "status" from the table "Tabel1"
Help!