Hi,<br><br>simple SQL query:<br><br>SELECT DISTINCT category FROM products<br><br>returns every single row, all category returned multiple times.<br><br>Tested in VStudio 4.5 and same result.<br><br>Searching the List I see Christian reported getting Errors 1 year ago when doing DISTINCT on varchar fields. My field is varchar but I don't get an error I just get exactly the same result as if I'd done:<br>
<br>SELECT category FROM products<br><br>Did a quick test on unsigned short and date field and got correct results.<br><br>Is there some trick to doing DISTINCT on varchar fields?<br><br>Thanks<br><br><br>