Hi Ruslan,<br><br>No it is not. I clicked the box to test it but it came up with a confirmation message, suggesting that I probably should really understand what I'm about to do - which I don't.<br><br>I did a quick search of the Wiki but didn't learn much. If IndexedByWords has to be checked what are the other consequences - why would I, why wouldn't I? What constitutes a word - my varchar fields can contain things like AMS#deg°C, or maybe a URL with all sorts of funny characters. <br>
<br>I could extract a distinct list by other means if I had to.<br><br>DISTINCT just worked in mySQL and postgreSQL so curious to learn why Valentina my handle it differently.<br><br>Thanks again<br><br><div class="gmail_quote">
On Mon, Jun 21, 2010 at 1:15 AM, Ruslan Zasukhin <span dir="ltr"><<a href="mailto:ruslan_zasukhin@valentina-db.com">ruslan_zasukhin@valentina-db.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 6/20/10 5:13 PM, "Kay C Lan" <<a href="mailto:lan.kc.macmail@gmail.com">lan.kc.macmail@gmail.com</a>> wrote:<br>
<br>
Hi Kay,<br>
<br>
Is field marked as IndexedByWords?<br>
<div><div></div><div class="h5"><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<br>
> doing DISTINCT on varchar fields. My field is varchar but I don't get an<br>
> 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>
</div></div><div class="im">--<br>
Best regards,<br>
<br>
Ruslan Zasukhin<br>
VP Engineering and New Technology<br>
Paradigma Software, Inc<br>
<br>
Valentina - Joining Worlds of Information<br>
<a href="http://www.paradigmasoft.com" target="_blank">http://www.paradigmasoft.com</a><br>
<br>
[I feel the need: the need for speed]<br>
<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Valentina mailing list<br>
<a href="mailto:Valentina@lists.macserve.net">Valentina@lists.macserve.net</a><br>
<a href="http://lists.macserve.net/mailman/listinfo/valentina" target="_blank">http://lists.macserve.net/mailman/listinfo/valentina</a><br>
</div></div></blockquote></div><br>