I want to select distinct values from only one column (the BoekingPlaatsId column) with this query:
SELECT MAX(BoekingPlaatsId), BewonerId, Naam, VoorNaam
F
I think you should be able to use
SELECT DISTINCT BewonerId, Naam, VoorNaam
You can't add BoekingPlaatsId
, because:
DISTINCT
looks for unique rowsBoekingPlaatsId
value you wantWhat also works is this:
SELECT MAX(BoekingPlaatsId), BewonerId, Naam, VoorNaam
FROM ...
GROUP BY BewonerId, Naam, VoorNaam